Package org.symphonyoss.s2.fugue.pubsub
Interface IQueueManager
-
public interface IQueueManagerA queue manager.- Author:
- Bruce Skingle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcreateQueue(String queueName, Map<String,String> tags, boolean dryRun)Create a queue.voiddeleteQueue(String queueName, boolean dryRun)Delete the given queue.booleandoesQueueExist(String queueName)Check to see if the given queue exists.intgetMaximumMessageSize()Return the maximum allowed size of a message in bytes.IQueueReceivergetReceiver(String queueName)Return a receiver for the given queue.IQueueSendergetSender(String queueName)Return a sender for the given queue.
-
-
-
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)
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.
-
getMaximumMessageSize
int getMaximumMessageSize()
Return the maximum allowed size of a message in bytes.- Returns:
- The maximum allowed size of a message in bytes.
-
-