public abstract class AbstractExchange extends AbstractDeclarable implements Exchange
Subclasses of this class are typically used with administrative operations that declare an exchange.
AmqpAdmin| Constructor and Description |
|---|
AbstractExchange(String name)
Construct a new Exchange for bean usage.
|
AbstractExchange(String name,
boolean durable,
boolean autoDelete)
Construct a new Exchange, given a name, durability flag, auto-delete flag.
|
AbstractExchange(String name,
boolean durable,
boolean autoDelete,
Map<String,Object> arguments)
Construct a new Exchange, given a name, durability flag, and auto-delete flag, and arguments.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArgument(String argName,
Object argValue) |
Map<String,Object> |
getArguments()
Return the collection of arbitrary arguments to use when declaring an exchange.
|
String |
getName()
The name of the exchange.
|
abstract String |
getType()
The type of the exchange.
|
boolean |
isAutoDelete()
True if the server should delete the exchange when it is no longer in use (if all bindings are deleted).
|
boolean |
isDurable()
A durable exchange will survive a server restart
|
String |
toString() |
getDeclaringAdmins, setAdminsThatShouldDeclare, setShouldDeclare, shouldDeclareclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeclaringAdmins, shouldDeclarepublic AbstractExchange(String name)
name - the name of the exchange.public AbstractExchange(String name, boolean durable, boolean autoDelete)
name - the name of the exchange.durable - true if we are declaring a durable exchange (the exchange will survive a server restart)autoDelete - true if the server should delete the exchange when it is no longer in usepublic AbstractExchange(String name, boolean durable, boolean autoDelete, Map<String,Object> arguments)
name - the name of the exchange.durable - true if we are declaring a durable exchange (the exchange will survive a server restart)autoDelete - true if the server should delete the exchange when it is no longer in usearguments - the arguments used to declare the exchangepublic abstract String getType()
ExchangeExchangeTypes for some well-known examples.public String getName()
Exchangepublic boolean isDurable()
Exchangepublic boolean isAutoDelete()
ExchangeisAutoDelete in interface Exchangepublic Map<String,Object> getArguments()
getArguments in interface Exchange