Spring AMQP

org.springframework.amqp.core
Interface Exchange

All Known Implementing Classes:
AbstractExchange, CustomExchange, DirectExchange, FanoutExchange, HeadersExchange, TopicExchange

public interface Exchange

Author:
Mark Fisher

Method Summary
 Map<String,Object> getArguments()
          A map of arguments used to declare the exchange.
 String getName()
          The name of the exchange.
 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
 

Method Detail

getName

String getName()
The name of the exchange.

Returns:
the name of the exchange

getType

String getType()
The type of the exchange. See ExchangeTypes 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

Map<String,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

Spring AMQP

Copyright © 2011. All Rights Reserved.