Package org.springframework.amqp.core
Class AnonymousQueue
- java.lang.Object
-
- org.springframework.amqp.core.AbstractDeclarable
-
- org.springframework.amqp.core.Queue
-
- org.springframework.amqp.core.AnonymousQueue
-
- All Implemented Interfaces:
java.lang.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 aNamingStrategy
. Two naming strategiesBase64UrlNamingStrategy
andUUIDNamingStrategy
are provided but you can implement your own. Names should be unique.- Author:
- Dave Syer, Gary Russell
-
-
Field Summary
-
Fields inherited from class org.springframework.amqp.core.Queue
X_QUEUE_LEADER_LOCATOR, X_QUEUE_MASTER_LOCATOR
-
-
Constructor Summary
Constructors Constructor Description AnonymousQueue()
Construct a queue with a Base64-based name.AnonymousQueue(java.util.Map<java.lang.String,java.lang.Object> arguments)
Construct a queue with a Base64-based name with the supplied arguments.AnonymousQueue(NamingStrategy namingStrategy)
Construct a queue with a name provided by the supplied naming strategy.AnonymousQueue(NamingStrategy namingStrategy, java.util.Map<java.lang.String,java.lang.Object> arguments)
Construct a queue with a name provided by the supplied naming strategy with the supplied arguments.
-
Method Summary
-
Methods inherited from class org.springframework.amqp.core.Queue
clone, getActualName, getName, isAutoDelete, isDurable, isExclusive, setActualName, setLeaderLocator, setMasterLocator, toString
-
Methods inherited from class org.springframework.amqp.core.AbstractDeclarable
addArgument, getArguments, getDeclaringAdmins, isIgnoreDeclarationExceptions, removeArgument, setAdminsThatShouldDeclare, setIgnoreDeclarationExceptions, setShouldDeclare, shouldDeclare
-
-
-
-
Constructor Detail
-
AnonymousQueue
public AnonymousQueue()
Construct a queue with a Base64-based name.
-
AnonymousQueue
public AnonymousQueue(java.util.Map<java.lang.String,java.lang.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, java.util.Map<java.lang.String,java.lang.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
-
-