Class AnonymousQueue

  • All Implemented Interfaces:
    Cloneable, Declarable

    public class AnonymousQueue
    extends Queue
    Represents an anonymous, non-durable, exclusive, auto-delete queue. The name has the form 'spring.gen-<base64UUID>' by default, but it can be modified by providing a NamingStrategy. Two naming strategies Base64UrlNamingStrategy and UUIDNamingStrategy are provided but you can implement your own. Names should be unique.
    Author:
    Dave Syer, Gary Russell
    • Constructor Detail

      • AnonymousQueue

        public AnonymousQueue()
        Construct a queue with a Base64-based name.
      • AnonymousQueue

        public AnonymousQueue​(Map<String,​Object> arguments)
        Construct a queue with a Base64-based name with the supplied arguments.
        Parameters:
        arguments - the arguments.
      • AnonymousQueue

        public AnonymousQueue​(NamingStrategy namingStrategy)
        Construct a queue with a name provided by the supplied naming strategy.
        Parameters:
        namingStrategy - the naming strategy.
        Since:
        2.1
      • AnonymousQueue

        public AnonymousQueue​(NamingStrategy namingStrategy,
                              Map<String,​Object> arguments)
        Construct a queue with a name provided by the supplied naming strategy with the supplied arguments. By default, these queues will be created on the node the application is connected to.
        Parameters:
        namingStrategy - the naming strategy.
        arguments - the arguments.
        Since:
        2.1