Class AutoCreateUtil
- java.lang.Object
-
- org.apache.activemq.artemis.utils.AutoCreateUtil
-
public class AutoCreateUtil extends Object
Utility class to create queues 'automatically'.
-
-
Constructor Summary
Constructors Constructor Description AutoCreateUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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).
-
-
-
Method Detail
-
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
public static SimpleString getCoreQueueName(ClientSession session, SimpleString destAddress)
-
-