|
Spring AMQP | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.amqp.core.AbstractExchange
public abstract class AbstractExchange
Common properties that describe all exchange types.
Subclasses of this class are typically used with administrative operations that declare an exchange.
AmqpAdmin
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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 exchangeMethod Detail |
---|
public abstract String getType()
Exchange
ExchangeTypes
for some well-known examples.
getType
in interface Exchange
public String getName()
Exchange
getName
in interface Exchange
public boolean isDurable()
Exchange
isDurable
in interface Exchange
public boolean isAutoDelete()
Exchange
isAutoDelete
in interface Exchange
public Map<String,Object> getArguments()
getArguments
in interface Exchange
public String toString()
toString
in class Object
|
Spring AMQP | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |