Interface QueueDispatcherService
public interface QueueDispatcherService
User:
Date: 10/09/12
Time: 11:00
handles dispatching adn polling messages from the queue
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(String messageId, String group, ExecStatus status, Payload payload) Dispatch one message to the queuevoiddispatch(List<ExecutionMessage> messages) dispatch messages to the queue
-
Method Details
-
dispatch
dispatch messages to the queue- Parameters:
messages- the messages to dispatch
-
poll
- Parameters:
uuid- the worker idmaxSize- max size of the poll bulk- Returns:
- a list of
ExecutionMessage
-
dispatch
Dispatch one message to the queue- Parameters:
messageId- the id of the messagegroup- the group associated with the messagestatus- the message statuspayload- the message payload
-