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
All Methods Instance Methods Concrete Methods 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 Detail
-
DocStoreUpdates
public DocStoreUpdates()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Return true if there are no events to process.
-
addPersist
public void addPersist(DocStoreUpdate bulkRequest)
Add a persist request.
-
addDelete
public void addDelete(DocStoreUpdate bulkRequest)
Add a delete request.
-
queueIndex
public void queueIndex(String queueId, Object beanId)
Queue an 'index' request.
-
queueDelete
public void queueDelete(String queueId, Object beanId)
Queue a 'delete' request.
-
queueNested
public void queueNested(String queueId, String path, Object beanId)
Queue an update to a nested/embedded object.
-
getPersistEvents
public List<DocStoreUpdate> getPersistEvents()
Return the persist insert and update requests to be sent to the document store.
-
getDeleteEvents
public List<DocStoreUpdate> getDeleteEvents()
Return delete events.
-
getNestedEvents
public List<DocStoreQueueEntry> getNestedEvents()
Return the list of nested update events.
-
getQueueEntries
public List<DocStoreQueueEntry> getQueueEntries()
Return the entries for sending to the queue.
-
-