@NoImplement
public interface QueueManager
A Queue manager is responsible for managing one or more Queue resources and providing common support for transactions and
persistence.
- Since:
- 1.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureQueue(String queueName, int maxOutstandingMessages, boolean persistent) Configures the defined queue.getQueueConfiguration(String queueName) Returns the configuration of theQueueof the givenqueueNameReturns a new instance ofQueueSessionbounded to thisQueueManager
-
Field Details
-
OBJECT_QUEUE_MANAGER
- See Also:
-
-
Method Details
-
getQueueSession
QueueSession getQueueSession()Returns a new instance ofQueueSessionbounded to thisQueueManager- Returns:
- session for retrieving queues and handle transactions
-
getQueueConfiguration
Returns the configuration of theQueueof the givenqueueName- Parameters:
queueName- the name of a configured queue- Returns:
- the queue's configuration or
Optional.empty()if no such queue
-
configureQueue
Configures the defined queue.- Parameters:
queueName- the name of a queue to be configured.maxOutstandingMessages- the max outstanding messages to be set for the configuration.persistent- if the queue should be configured to be persistent.
-