Package io.ebeanservice.docstore.api
Class DocStoreUpdates
java.lang.Object
io.ebeanservice.docstore.api.DocStoreUpdates
public class DocStoreUpdates extends Object
Collection of document store updates that are either sent to the document store
or queued for future processing
-
Constructor Summary
Constructors Constructor Description DocStoreUpdates() -
Method Summary
Modifier and Type Method Description voidaddDelete(DocStoreUpdate bulkRequest)Add a delete request.voidaddNested(String queueId, String path, Object beanId)Add a nested update.voidaddPersist(DocStoreUpdate bulkRequest)Add a persist request.List<DocStoreUpdate>getDeleteEvents()Return delete events.List<DocStoreQueueEntry>getNestedEvents()Return the list of nested update events.List<DocStoreUpdate>getPersistEvents()Return the persist insert and update requests to be sent to the document store.List<DocStoreQueueEntry>getQueueEntries()Return the entries for sending to the queue.booleanisEmpty()Return true if there are no events to process.voidqueueDelete(String queueId, Object beanId)Queue a 'delete' request.voidqueueIndex(String queueId, Object beanId)Queue an 'index' request.voidqueueNested(String queueId, String path, Object beanId)Queue an update to a nested/embedded object.
-
Constructor Details
-
DocStoreUpdates
public DocStoreUpdates()
-
-
Method Details
-
isEmpty
Return true if there are no events to process. -
addPersist
Add a persist request. -
addDelete
Add a delete request. -
addNested
Add a nested update. -
queueIndex
Queue an 'index' request. -
queueDelete
Queue a 'delete' request. -
queueNested
Queue an update to a nested/embedded object. -
getPersistEvents
Return the persist insert and update requests to be sent to the document store. -
getDeleteEvents
Return delete events. -
getNestedEvents
Return the list of nested update events. -
getQueueEntries
Return the entries for sending to the queue.
-