public interface QueueListener
| Modifier and Type | Method and Description |
|---|---|
void |
onEnqueue(List<ExecutionMessage> messages,
int queueSize)
A callback that will be called when messages are inserted to the queue
|
void |
onFailed(List<ExecutionMessage> messages)
A callback that will be called when messages are in status of failed
|
void |
onPoll(List<ExecutionMessage> messages,
int queueSize)
A callback that will be called when messages are polled from the queue
|
void |
onTerminated(List<ExecutionMessage> messages)
A callback that will be called when messages are in status of terminated
|
void |
prePersist(List<ExecutionMessage> messages)
A callback that will be called when messages are inserted to the queue
before they are persisted to the DB
|
void prePersist(List<ExecutionMessage> messages)
messages - the messages that are inserted to the queuevoid onEnqueue(List<ExecutionMessage> messages, int queueSize)
messages - the messages that are inserted to the queuequeueSize - the size of the inserted messagesvoid onPoll(List<ExecutionMessage> messages, int queueSize)
messages - the messages that are polled from the queuequeueSize - the size of the polled messagesvoid onTerminated(List<ExecutionMessage> messages)
messages - the terminated messagesvoid onFailed(List<ExecutionMessage> messages)
messages - the failed messagesCopyright © 2015. All Rights Reserved.