Package org.springframework.amqp.core
Interface Exchange
-
- All Superinterfaces:
Declarable
- All Known Implementing Classes:
AbstractExchange
,CustomExchange
,DirectExchange
,FanoutExchange
,HeadersExchange
,TopicExchange
public interface Exchange extends Declarable
Interface for all exchanges.- Author:
- Mark Fisher, Gary Russell, Artem Bilan
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
getArguments()
A map of arguments used to declare the exchange.java.lang.String
getName()
The name of the exchange.java.lang.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
isDelayed()
Is a delayed message exchange; currently requires a broker plugin.boolean
isDurable()
A durable exchange will survive a server restart.boolean
isInternal()
Is an exchange internal; i.e.-
Methods inherited from interface org.springframework.amqp.core.Declarable
addArgument, getDeclaringAdmins, isIgnoreDeclarationExceptions, removeArgument, setAdminsThatShouldDeclare, shouldDeclare
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
The name of the exchange.- Returns:
- the name of the exchange.
-
getType
java.lang.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
java.util.Map<java.lang.String,java.lang.Object> 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
-
-