|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.broker.BrokerFilter
org.apache.activemq.broker.BrokerBroadcaster
public class BrokerBroadcaster
Used to add listeners for Broker actions
| Field Summary | |
|---|---|
protected Broker[] |
listeners
|
| Fields inherited from class org.apache.activemq.broker.BrokerFilter |
|---|
next |
| Constructor Summary | |
|---|---|
BrokerBroadcaster(Broker next)
|
|
| Method Summary | |
|---|---|
void |
acknowledge(ConsumerBrokerExchange consumerExchange,
MessageAck ack)
Used to acknowledge the receipt of a message by a client. |
void |
addBroker(Connection connection,
BrokerInfo info)
A remote Broker connects |
void |
addConnection(ConnectionContext context,
ConnectionInfo info)
A client is establishing a connection with the broker. |
Subscription |
addConsumer(ConnectionContext context,
ConsumerInfo info)
Adds a consumer. |
Destination |
addDestination(ConnectionContext context,
ActiveMQDestination destination,
boolean createIfTemporary)
Used to create a destination. |
void |
addListener(Broker broker)
|
void |
addProducer(ConnectionContext context,
ProducerInfo info)
Adds a producer. |
void |
addSession(ConnectionContext context,
SessionInfo info)
Adds a session. |
void |
beginTransaction(ConnectionContext context,
TransactionId xid)
Starts a transaction. |
void |
commitTransaction(ConnectionContext context,
TransactionId xid,
boolean onePhase)
Commits a transaction. |
void |
forgetTransaction(ConnectionContext context,
TransactionId transactionId)
Forgets a transaction. |
void |
gc()
|
protected Broker[] |
getListeners()
|
protected List<Broker> |
getListenersAsList()
|
int |
prepareTransaction(ConnectionContext context,
TransactionId xid)
Prepares a transaction. |
void |
removeConnection(ConnectionContext context,
ConnectionInfo info,
Throwable error)
A client is disconnecting from the broker. |
void |
removeConsumer(ConnectionContext context,
ConsumerInfo info)
Removes a consumer. |
void |
removeDestination(ConnectionContext context,
ActiveMQDestination destination,
long timeout)
Used to destroy a destination. |
void |
removeListener(Broker broker)
|
void |
removeProducer(ConnectionContext context,
ProducerInfo info)
Removes a producer. |
void |
removeSession(ConnectionContext context,
SessionInfo info)
Removes a session. |
void |
removeSubscription(ConnectionContext context,
RemoveSubscriptionInfo info)
Deletes a durable subscription. |
void |
rollbackTransaction(ConnectionContext context,
TransactionId xid)
Rollsback a transaction. |
void |
send(ProducerBrokerExchange producerExchange,
Message messageSend)
Send a message to the broker to using the specified destination. |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected volatile Broker[] listeners
| Constructor Detail |
|---|
public BrokerBroadcaster(Broker next)
| Method Detail |
|---|
public void acknowledge(ConsumerBrokerExchange consumerExchange,
MessageAck ack)
throws Exception
Region
acknowledge in interface Regionacknowledge in class BrokerFilterconsumerExchange - the environment the operation is being executed under.
Exception - TODO
public void addConnection(ConnectionContext context,
ConnectionInfo info)
throws Exception
Broker
addConnection in interface BrokeraddConnection in class BrokerFilterException - TODO
public Subscription addConsumer(ConnectionContext context,
ConsumerInfo info)
throws Exception
Region
addConsumer in interface RegionaddConsumer in class BrokerFiltercontext - the environment the operation is being executed under.
Exception - TODO
public void addProducer(ConnectionContext context,
ProducerInfo info)
throws Exception
Broker
addProducer in interface BrokeraddProducer in interface RegionaddProducer in class BrokerFiltercontext - the enviorment the operation is being executed under.
Exception - TODO
public void commitTransaction(ConnectionContext context,
TransactionId xid,
boolean onePhase)
throws Exception
Broker
commitTransaction in interface BrokercommitTransaction in class BrokerFilterException - TODO
public void removeSubscription(ConnectionContext context,
RemoveSubscriptionInfo info)
throws Exception
Region
removeSubscription in interface RegionremoveSubscription in class BrokerFiltercontext - the environment the operation is being executed under.info - TODO
Exception - TODO
public int prepareTransaction(ConnectionContext context,
TransactionId xid)
throws Exception
Broker
prepareTransaction in interface BrokerprepareTransaction in class BrokerFilterException - TODO
public void removeConnection(ConnectionContext context,
ConnectionInfo info,
Throwable error)
throws Exception
Broker
removeConnection in interface BrokerremoveConnection in class BrokerFiltercontext - the environment the operation is being executed under.error - null if the client requested the disconnect or the error
that caused the client to disconnect.
Exception - TODO
public void removeConsumer(ConnectionContext context,
ConsumerInfo info)
throws Exception
Region
removeConsumer in interface RegionremoveConsumer in class BrokerFiltercontext - the environment the operation is being executed under.
Exception - TODO
public void removeProducer(ConnectionContext context,
ProducerInfo info)
throws Exception
Broker
removeProducer in interface BrokerremoveProducer in interface RegionremoveProducer in class BrokerFiltercontext - the enviorment the operation is being executed under.
Exception - TODO
public void rollbackTransaction(ConnectionContext context,
TransactionId xid)
throws Exception
Broker
rollbackTransaction in interface BrokerrollbackTransaction in class BrokerFilterException - TODO
public void send(ProducerBrokerExchange producerExchange,
Message messageSend)
throws Exception
Region
send in interface Regionsend in class BrokerFilterproducerExchange - the environment the operation is being executed under.
Exception - TODO
public void beginTransaction(ConnectionContext context,
TransactionId xid)
throws Exception
Broker
beginTransaction in interface BrokerbeginTransaction in class BrokerFilterException - TODO
public void forgetTransaction(ConnectionContext context,
TransactionId transactionId)
throws Exception
Broker
forgetTransaction in interface BrokerforgetTransaction in class BrokerFilterException
public Destination addDestination(ConnectionContext context,
ActiveMQDestination destination,
boolean createIfTemporary)
throws Exception
Region
addDestination in interface RegionaddDestination in class BrokerFilterdestination - the destination to create.
Exception - TODO
public void removeDestination(ConnectionContext context,
ActiveMQDestination destination,
long timeout)
throws Exception
Region
removeDestination in interface RegionremoveDestination in class BrokerFiltercontext - the environment the operation is being executed under.destination - what is being removed from the broker.timeout - the max amount of time to wait for the destination to quiesce
Exception - TODO
public void start()
throws Exception
start in interface Servicestart in class BrokerFilterException
public void stop()
throws Exception
stop in interface Servicestop in class BrokerFilterException
public void addSession(ConnectionContext context,
SessionInfo info)
throws Exception
Broker
addSession in interface BrokeraddSession in class BrokerFilterException - TODO
public void removeSession(ConnectionContext context,
SessionInfo info)
throws Exception
Broker
removeSession in interface BrokerremoveSession in class BrokerFilterException - TODOpublic void gc()
gc in interface Regiongc in class BrokerFilter
public void addBroker(Connection connection,
BrokerInfo info)
Broker
addBroker in interface BrokeraddBroker in class BrokerFilterprotected Broker[] getListeners()
public void addListener(Broker broker)
public void removeListener(Broker broker)
protected List<Broker> getListenersAsList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||