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.intgetMaximumMessageSize()Return the maximum allowed size of a message in bytes.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.
-
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.
-
getMaximumMessageSize
int getMaximumMessageSize()
Return the maximum allowed size of a message in bytes.- Returns:
- The maximum allowed size of a message in bytes.
-
-