public class DocStoreUpdates extends Object
Constructor and Description |
---|
DocStoreUpdates() |
Modifier and Type | Method and Description |
---|---|
void |
addDelete(DocStoreUpdate bulkRequest)
Add a delete request.
|
void |
addNested(String queueId,
String path,
Object beanId)
Add a nested update.
|
void |
addPersist(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.
|
boolean |
isEmpty()
Return true if there are no events to process.
|
void |
queueDelete(String queueId,
Object beanId)
Queue a 'delete' request.
|
void |
queueIndex(String queueId,
Object beanId)
Queue an 'index' request.
|
void |
queueNested(String queueId,
String path,
Object beanId)
Queue an update to a nested/embedded object.
|
public DocStoreUpdates()
public boolean isEmpty()
public void addPersist(DocStoreUpdate bulkRequest)
public void addDelete(DocStoreUpdate bulkRequest)
public void queueIndex(String queueId, Object beanId)
public void queueDelete(String queueId, Object beanId)
public void queueNested(String queueId, String path, Object beanId)
public List<DocStoreUpdate> getPersistEvents()
public List<DocStoreUpdate> getDeleteEvents()
public List<DocStoreQueueEntry> getNestedEvents()
public List<DocStoreQueueEntry> getQueueEntries()
Copyright © 2019. All rights reserved.