public interface ExecutionQueueService
| Modifier and Type | Method and Description |
|---|---|
int |
countMessagesWithoutAckForWorker(int maxSize,
long minVersionAllowed,
String workerUuid)
polls the count of messages that didn't receive ack for a number of recovery versions
|
void |
enqueue(List<ExecutionMessage> messages)
enqueue messages to the queue
|
List<ExecutionMessage> |
poll(String workerId,
int maxSize,
long workerPollingMemory,
ExecStatus... statuses)
polls messages from the queue
|
List<ExecutionMessage> |
pollMessagesWithoutAck(int maxSize,
long minVersionAllowed)
polls messages that didn't receive ack yet
|
List<ExecutionMessage> |
pollRecovery(String workerId,
int maxSize,
ExecStatus... statuses)
polls messages from the queue
|
List<ExecutionMessage> |
readMessagesByStatus(int maxSize,
ExecStatus... statuses) |
Map<Long,Payload> |
readPayloadByExecutionIds(Long... executionIds)
get the payloads for requested execution ids
|
void enqueue(List<ExecutionMessage> messages)
messages - the messages to enqueueList<ExecutionMessage> poll(String workerId, int maxSize, long workerPollingMemory, ExecStatus... statuses)
workerId - the id of the workermaxSize - max size of the poll bulkstatuses - requested messages statusesExecutionMessage requestedList<ExecutionMessage> pollRecovery(String workerId, int maxSize, ExecStatus... statuses)
workerId - the id of the workermaxSize - max size of the poll bulkstatuses - requested messages statusesExecutionMessage requestedList<ExecutionMessage> pollMessagesWithoutAck(int maxSize, long minVersionAllowed)
maxSize - max size of the poll bulkminVersionAllowed - min version that the messages didn't send ackExecutionMessage requestedMap<Long,Payload> readPayloadByExecutionIds(Long... executionIds)
executionIds - the execution ids to get payload forList<ExecutionMessage> readMessagesByStatus(int maxSize, ExecStatus... statuses)
maxSize - max size of the poll bulkstatuses - the requested statuses of the messagesExecutionMessage requestedint countMessagesWithoutAckForWorker(int maxSize,
long minVersionAllowed,
String workerUuid)
maxSize - max size of the poll bulkminVersionAllowed - min version that the messages didn't send ackworkerUuid - the id of the associated workerCopyright © 2021. All rights reserved.