Interface IQueueManager


  • public interface IQueueManager
    A queue manager.
    Author:
    Bruce Skingle
    • Method Detail

      • deleteQueue

        void deleteQueue​(String queueName,
                         boolean dryRun)
        Delete the given queue.
        Parameters:
        queueName - The name of the queue to be deleted.
        dryRun - If true then log actions which would be performed but don't actually do anything.
      • createQueue

        String createQueue​(String queueName,
                           @Nullable
                           Map<String,​String> tags,
                           boolean dryRun)
        Create a queue.
        Parameters:
        queueName - The name of the queue to be created.
        tags - Tags to be applied to the queue.
        dryRun - If true then log actions which would be performed but don't actually do anything.
        Returns:
        The queue event source name.
      • doesQueueExist

        boolean doesQueueExist​(String queueName)
        Check to see if the given queue exists.
        Parameters:
        queueName - The name of the queue.
        Returns:
        true if the queue exists.
      • getSender

        IQueueSender getSender​(String queueName)
        Return a sender for the given queue.
        Parameters:
        queueName - The name of the queue to which messages will be sent.
        Returns:
        A sender for the given queue.
      • getReceiver

        IQueueReceiver getReceiver​(String queueName)
                            throws org.symphonyoss.s2.common.exception.NotFoundException
        Return a receiver for the given queue.
        Parameters:
        queueName - The name of the queue from which messages will be received.
        Returns:
        A receiver for the given queue.
        Throws:
        org.symphonyoss.s2.common.exception.NotFoundException - If the queue does not exist.
      • getMaximumMessageSize

        int getMaximumMessageSize()
        Return the maximum allowed size of a message in bytes.
        Returns:
        The maximum allowed size of a message in bytes.