Package io.ebeanservice.elastic.support
Class BaseIndexQueueWriter
- java.lang.Object
-
- io.ebeanservice.elastic.support.BaseIndexQueueWriter
-
- All Implemented Interfaces:
IndexQueueWriter
public class BaseIndexQueueWriter extends Object implements IndexQueueWriter
Base implementation of IndexQueueWriter that inserts the events into a database table.
-
-
Field Summary
Fields Modifier and Type Field Description static intPROCESSING_FALSEstatic intPROCESSING_TRUE
-
Constructor Summary
Constructors Constructor Description BaseIndexQueueWriter(io.ebean.EbeanServer server, String tableName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonStartup()Invoke on startup, usually to check connectivity to the queue.voidqueue(List<io.ebean.DocStoreQueueEntry> queueEntries)Push all the queue entries onto the queue.
-
-
-
Field Detail
-
PROCESSING_FALSE
public static final int PROCESSING_FALSE
- See Also:
- Constant Field Values
-
PROCESSING_TRUE
public static final int PROCESSING_TRUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BaseIndexQueueWriter
public BaseIndexQueueWriter(io.ebean.EbeanServer server, String tableName)
-
-
Method Detail
-
onStartup
public void onStartup()
Description copied from interface:IndexQueueWriterInvoke on startup, usually to check connectivity to the queue.- Specified by:
onStartupin interfaceIndexQueueWriter
-
queue
public void queue(List<io.ebean.DocStoreQueueEntry> queueEntries)
Description copied from interface:IndexQueueWriterPush all the queue entries onto the queue.- Specified by:
queuein interfaceIndexQueueWriter
-
-