Interface QueueDispatcherService


public interface QueueDispatcherService
User: Date: 10/09/12 Time: 11:00 handles dispatching adn polling messages from the queue
  • Method Details

    • dispatch

      void dispatch(List<ExecutionMessage> messages)
      dispatch messages to the queue
      Parameters:
      messages - the messages to dispatch
    • poll

      List<ExecutionMessage> poll(String uuid, int maxSize, long workerPollingMemory)
      Parameters:
      uuid - the worker id
      maxSize - max size of the poll bulk
      Returns:
      a list of ExecutionMessage
    • dispatch

      void dispatch(String messageId, String group, ExecStatus status, Payload payload)
      Dispatch one message to the queue
      Parameters:
      messageId - the id of the message
      group - the group associated with the message
      status - the message status
      payload - the message payload