|
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| Field Summary | |
|---|---|
protected String |
name
|
| 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, and auto-delete flag. |
|
| Method Summary | |
|---|---|
Map<String,Object> |
getArguments()
Return the collection of arbitrary arguments to use when declaring an exchange. |
String |
getName()
|
abstract String |
getType()
|
boolean |
isAutoDelete()
|
boolean |
isDurable()
|
void |
setArguments(Map<String,Object> arguments)
Set the collection of arbitrary arguments to use when declaring an exchange. |
void |
setAutoDelete(boolean autoDelete)
Set the auto-delete lifecycle of this exchange. |
void |
setDurable(boolean durable)
Set the durability of this exchange definition. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String name
| 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 use| Method Detail |
|---|
public abstract String getType()
getType in interface Exchangepublic String getName()
getName in interface Exchangepublic boolean isDurable()
isDurable in interface Exchangepublic void setDurable(boolean durable)
durable - true if describing a durable exchange (the exchange will survive a server restart)public boolean isAutoDelete()
isAutoDelete in interface Exchangepublic void setAutoDelete(boolean autoDelete)
autoDelete - true if the server should delete the exchange when it is no longer in use.public Map<String,Object> getArguments()
getArguments in interface Exchangepublic void setArguments(Map<String,Object> arguments)
arguments - A collection of arbitrary arguments to use when declaring an 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 | |||||||||