Package org.springframework.amqp.core
Interface Exchange
- All Superinterfaces:
Declarable
- All Known Implementing Classes:
AbstractExchange
,ConsistentHashExchange
,CustomExchange
,DirectExchange
,FanoutExchange
,HeadersExchange
,TopicExchange
Interface for all exchanges.
- Author:
- Mark Fisher, Gary Russell, Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionA map of arguments used to declare the exchange.getName()
The name of the exchange.getType()
The type of the exchange.boolean
True if the server should delete the exchange when it is no longer in use (if all bindings are deleted).boolean
Is a delayed message exchange; currently requires a broker plugin.boolean
A durable exchange will survive a server restart.boolean
Is an exchange internal; i.e.Methods inherited from interface org.springframework.amqp.core.Declarable
addArgument, getDeclaringAdmins, isIgnoreDeclarationExceptions, removeArgument, setAdminsThatShouldDeclare, shouldDeclare
-
Method Details
-
getName
String getName()The name of the exchange.- Returns:
- the name of the exchange.
-
getType
String getType()The type of the exchange. SeeExchangeTypes
for some well-known examples.- Returns:
- the type of the exchange.
-
isDurable
boolean isDurable()A durable exchange will survive a server restart.- Returns:
- true if durable.
-
isAutoDelete
boolean isAutoDelete()True if the server should delete the exchange when it is no longer in use (if all bindings are deleted).- Returns:
- true if auto-delete.
-
getArguments
A map of arguments used to declare the exchange. These are stored by the broker, but do not necessarily have any meaning to the broker (depending on the exchange type).- Returns:
- the arguments.
-
isDelayed
boolean isDelayed()Is a delayed message exchange; currently requires a broker plugin.- Returns:
- true if delayed.
- Since:
- 1.6
-
isInternal
boolean isInternal()Is an exchange internal; i.e. can't be directly published to by a client, used for exchange-to-exchange binding only.- Returns:
- true if internal.
- Since:
- 1.6
-