public interface QueuesConfig extends Config
Queue definitions can be configured both client and server side but are most important at the server. Such definitions may not be changed at the server side once the server has started. At the client side definitions are only read when first required and so all such configuration should be done before making the first connection.
Modifier and Type | Method and Description |
---|---|
QueueConfig |
addQueue(String name)
Add a queue definition.
|
String |
getDefaultQueue()
Gets the name of the default queue definition.
|
QueueConfig |
getQueue(String name)
Get a named queue definition.
|
List<QueueConfig> |
getQueues()
Get the list of configured queue definitions.
|
void |
setDefaultQueue(String queueDefinition)
Sets the name of the default queue definition.
|
void setDefaultQueue(String queueDefinition) throws ConfigException
If this is not explicitly set then the first queue definition configured will be used.
queueDefinition
- the name of the default queue definition.ConfigException
- if unable to set the propertyString getDefaultQueue()
List<QueueConfig> getQueues()
QueueConfig getQueue(String name)
name
- the queue definition nameQueueConfig addQueue(String name) throws ConfigException
name
- the queue definition name.ConfigException
- if unable to add a queue of the given nameCopyright © 2016 Push Technology Ltd. All Rights Reserved.