Class DocStoreIndexEvent<T>
- java.lang.Object
-
- io.ebeanservice.docstore.api.support.DocStoreIndexEvent<T>
-
- All Implemented Interfaces:
DocStoreUpdate
public class DocStoreIndexEvent<T> extends Object implements DocStoreUpdate
A 'Delete by Id' request that is send to the document store.
-
-
Constructor Summary
Constructors Constructor Description DocStoreIndexEvent(BeanType<T> beanType, Object idValue, T bean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToQueue(DocStoreUpdates docStoreUpdates)Add this event to the queue (for queue delayed processing).voiddocStoreUpdate(DocStoreUpdateContext txn)Add appropriate JSON content for sending to the ElasticSearch Bulk API.
-
-
-
Constructor Detail
-
DocStoreIndexEvent
public DocStoreIndexEvent(BeanType<T> beanType, Object idValue, T bean)
-
-
Method Detail
-
docStoreUpdate
public void docStoreUpdate(DocStoreUpdateContext txn) throws IOException
Add appropriate JSON content for sending to the ElasticSearch Bulk API.- Specified by:
docStoreUpdatein interfaceDocStoreUpdate- Throws:
IOException
-
addToQueue
public void addToQueue(DocStoreUpdates docStoreUpdates)
Add this event to the queue (for queue delayed processing).- Specified by:
addToQueuein interfaceDocStoreUpdate
-
-