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 |
onPersistMessage(List<ExecutionMessage> messages)
A callback that will be called when messages are required to be persisted in addition to the queue
|
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 messagesvoid onPersistMessage(List<ExecutionMessage> messages)
messages - the to be persisted messagesCopyright © 2020. All rights reserved.