org.apache.qpid.server.exchange
Interface Exchange

All Known Implementing Classes:
AbstractExchange, DestNameExchange, DestWildExchange, HeadersExchange

public interface Exchange


Method Summary
 void close()
           
 void deregisterQueue(java.lang.String routingKey, AMQQueue queue)
           
 java.lang.String getName()
           
 int getTicket()
           
 void initialise(java.lang.String name, boolean durable, int ticket, boolean autoDelete)
           
 boolean isAutoDelete()
           
 boolean isDurable()
           
 void registerQueue(java.lang.String routingKey, AMQQueue queue, org.apache.qpid.framing.FieldTable args)
           
 void route(AMQMessage message)
           
 

Method Detail

getName

java.lang.String getName()

initialise

void initialise(java.lang.String name,
                boolean durable,
                int ticket,
                boolean autoDelete)
                throws org.apache.qpid.AMQException
Throws:
org.apache.qpid.AMQException

isDurable

boolean isDurable()

isAutoDelete

boolean isAutoDelete()
Returns:
true if the exchange will be deleted after all queues have been detached

getTicket

int getTicket()

close

void close()
           throws org.apache.qpid.AMQException
Throws:
org.apache.qpid.AMQException

registerQueue

void registerQueue(java.lang.String routingKey,
                   AMQQueue queue,
                   org.apache.qpid.framing.FieldTable args)
                   throws org.apache.qpid.AMQException
Throws:
org.apache.qpid.AMQException

deregisterQueue

void deregisterQueue(java.lang.String routingKey,
                     AMQQueue queue)
                     throws org.apache.qpid.AMQException
Throws:
org.apache.qpid.AMQException

route

void route(AMQMessage message)
           throws org.apache.qpid.AMQException
Throws:
org.apache.qpid.AMQException