Interface Exchange
- All Superinterfaces:
Declarable
- All Known Implementing Classes:
AbstractExchange,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.booleanTrue if the server should delete the exchange when it is no longer in use (if all bindings are deleted).booleanIs a delayed message exchange; currently requires a broker plugin.booleanA durable exchange will survive a server restart.booleanIs an exchange internal; i.e.Methods inherited from interface org.springframework.amqp.core.Declarable
addArgument, getDeclaringAdmins, isIgnoreDeclarationExceptions, removeArgument, setAdminsThatShouldDeclare, shouldDeclare
-
Method Details
-
getName
-
getType
String getType()The type of the exchange. SeeExchangeTypesfor 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
-
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
-