Class AutoCreateUtil


  • public class AutoCreateUtil
    extends Object
    Utility class to create queues 'automatically'.
    • Constructor Detail

      • AutoCreateUtil

        public AutoCreateUtil()
    • Method Detail

      • 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 set
        addressQuery - 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 queue
        durable - if queue is durable