Class AutoCreateUtil
java.lang.Object
org.apache.activemq.artemis.utils.AutoCreateUtil
Utility class to create queues 'automatically'.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidautoCreateQueue(ClientSession session, SimpleString destAddress, SimpleString selectorString) static SimpleStringgetCoreQueueName(ClientSession session, SimpleString destAddress) static voidsetRequiredQueueConfigurationIfNotSet(QueueConfiguration queueConfiguration, ClientSession.AddressQuery addressQuery, RoutingType routingType, SimpleString filter, boolean durable) Set the non nullable (CreateQueueMessage_V2) queue attributes (all others have static defaults or get defaulted if null by address settings server side).
-
Constructor Details
-
AutoCreateUtil
public AutoCreateUtil()
-
-
Method Details
-
autoCreateQueue
public static void autoCreateQueue(ClientSession session, SimpleString destAddress, SimpleString selectorString) throws ActiveMQException - Throws:
ActiveMQException
-
setRequiredQueueConfigurationIfNotSet
public static void setRequiredQueueConfigurationIfNotSet(QueueConfiguration queueConfiguration, ClientSession.AddressQuery addressQuery, RoutingType routingType, SimpleString filter, boolean durable) Set the non nullable (CreateQueueMessage_V2) queue attributes (all others have static defaults or get defaulted if null by address settings server side).- Parameters:
queueConfiguration- the provided queue configuration the client wants to setaddressQuery- the address settings query information (this could be removed if max consumers and purge on no consumers were null-able in CreateQueueMessage_V2)routingType- of the queue (multicast or anycast)filter- to apply on the queuedurable- if queue is durable
-
getCoreQueueName
-