Interface ExecutionQueueService
public interface ExecutionQueueService
User:
Date: 10/09/12
Responsible for the Execution Queue
-
Method Summary
Modifier and TypeMethodDescriptionintcountMessagesWithoutAckForWorker(int maxSize, long minVersionAllowed, String workerUuid) polls the count of messages that didn't receive ack for a number of recovery versionsvoidenqueue(List<ExecutionMessage> messages) enqueue messages to the queuepoll(String workerId, int maxSize, long workerPollingMemory, ExecStatus... statuses) polls messages from the queuepollMessagesWithoutAck(int maxSize, long minVersionAllowed) polls messages that didn't receive ack yetpollRecovery(String workerId, int maxSize, ExecStatus... statuses) polls messages from the queuereadMessagesByStatus(int maxSize, ExecStatus... statuses) readPayloadByExecutionIds(Long... executionIds) get the payloads for requested execution ids
-
Method Details
-
enqueue
enqueue messages to the queue- Parameters:
messages- the messages to enqueue
-
poll
List<ExecutionMessage> poll(String workerId, int maxSize, long workerPollingMemory, ExecStatus... statuses) polls messages from the queue- Parameters:
workerId- the id of the workermaxSize- max size of the poll bulkstatuses- requested messages statuses- Returns:
- a List of
ExecutionMessagerequested
-
pollRecovery
polls messages from the queue- Parameters:
workerId- the id of the workermaxSize- max size of the poll bulkstatuses- requested messages statuses- Returns:
- a List of
ExecutionMessagerequested
-
pollMessagesWithoutAck
polls messages that didn't receive ack yet- Parameters:
maxSize- max size of the poll bulkminVersionAllowed- min version that the messages didn't send ack- Returns:
- a List of
ExecutionMessagerequested
-
readPayloadByExecutionIds
get the payloads for requested execution ids- Parameters:
executionIds- the execution ids to get payload for- Returns:
- a map of the execution id and its payload
-
readMessagesByStatus
- Parameters:
maxSize- max size of the poll bulkstatuses- the requested statuses of the messages- Returns:
- a List of
ExecutionMessagerequested
-
countMessagesWithoutAckForWorker
polls the count of messages that didn't receive ack for a number of recovery versions- Parameters:
maxSize- max size of the poll bulkminVersionAllowed- min version that the messages didn't send ackworkerUuid- the id of the associated worker- Returns:
- the number of messages that didn't receive ack for a number of recovery versions
-