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:
Cloneable
,Declarable
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
-
Field Summary
Fields inherited from class org.springframework.amqp.core.Queue
X_QUEUE_LEADER_LOCATOR, X_QUEUE_MASTER_LOCATOR
-
Constructor Summary
ConstructorDescriptionConstruct a queue with a Base64-based name.AnonymousQueue
(Map<String, 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, Map<String, 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 Details
-
AnonymousQueue
public AnonymousQueue()Construct a queue with a Base64-based name. -
AnonymousQueue
Construct a queue with a Base64-based name with the supplied arguments.- Parameters:
arguments
- the arguments.
-
AnonymousQueue
Construct a queue with a name provided by the supplied naming strategy.- Parameters:
namingStrategy
- the naming strategy.- Since:
- 2.1
-
AnonymousQueue
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
-