public class BrokerBroadcaster extends BrokerFilter
| Modifier and Type | Field and Description |
|---|---|
protected Broker[] |
listeners |
next| Constructor and Description |
|---|
BrokerBroadcaster(Broker next) |
| Modifier and Type | Method and Description |
|---|---|
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() |
addDestinationInfo, brokerServiceStarted, fastProducer, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getPeerBrokerInfos, getPreparedTransactions, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, preProcessDispatch, processConsumerControl, processDispatchNotification, reapplyInterceptor, removeBroker, removeDestinationInfo, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumerpublic BrokerBroadcaster(Broker next)
public void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws Exception
Regionacknowledge in interface Regionacknowledge in class BrokerFilterconsumerExchange - the environment the operation is being executed under.Exception - TODOpublic void addConnection(ConnectionContext context, ConnectionInfo info) throws Exception
BrokeraddConnection in interface BrokeraddConnection in class BrokerFilterException - TODOpublic Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception
RegionaddConsumer in interface RegionaddConsumer in class BrokerFiltercontext - the environment the operation is being executed under.Exception - TODOpublic void addProducer(ConnectionContext context, ProducerInfo info) throws Exception
BrokeraddProducer in interface BrokeraddProducer in interface RegionaddProducer in class BrokerFiltercontext - the enviorment the operation is being executed under.Exception - TODOpublic void commitTransaction(ConnectionContext context, TransactionId xid, boolean onePhase) throws Exception
BrokercommitTransaction in interface BrokercommitTransaction in class BrokerFilterException - TODOpublic void removeSubscription(ConnectionContext context, RemoveSubscriptionInfo info) throws Exception
RegionremoveSubscription in interface RegionremoveSubscription in class BrokerFiltercontext - the environment the operation is being executed under.info - TODOException - TODOpublic int prepareTransaction(ConnectionContext context, TransactionId xid) throws Exception
BrokerprepareTransaction in interface BrokerprepareTransaction in class BrokerFilterException - TODOpublic void removeConnection(ConnectionContext context, ConnectionInfo info, Throwable error) throws Exception
BrokerremoveConnection 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 - TODOpublic void removeConsumer(ConnectionContext context, ConsumerInfo info) throws Exception
RegionremoveConsumer in interface RegionremoveConsumer in class BrokerFiltercontext - the environment the operation is being executed under.Exception - TODOpublic void removeProducer(ConnectionContext context, ProducerInfo info) throws Exception
BrokerremoveProducer in interface BrokerremoveProducer in interface RegionremoveProducer in class BrokerFiltercontext - the enviorment the operation is being executed under.Exception - TODOpublic void rollbackTransaction(ConnectionContext context, TransactionId xid) throws Exception
BrokerrollbackTransaction in interface BrokerrollbackTransaction in class BrokerFilterException - TODOpublic void send(ProducerBrokerExchange producerExchange, Message messageSend) throws Exception
Regionsend in interface Regionsend in class BrokerFilterproducerExchange - the environment the operation is being executed under.Exception - TODOpublic void beginTransaction(ConnectionContext context, TransactionId xid) throws Exception
BrokerbeginTransaction in interface BrokerbeginTransaction in class BrokerFilterException - TODOpublic void forgetTransaction(ConnectionContext context, TransactionId transactionId) throws Exception
BrokerforgetTransaction in interface BrokerforgetTransaction in class BrokerFilterExceptionpublic Destination addDestination(ConnectionContext context, ActiveMQDestination destination, boolean createIfTemporary) throws Exception
RegionaddDestination in interface RegionaddDestination in class BrokerFilterdestination - the destination to create.Exception - TODOpublic void removeDestination(ConnectionContext context, ActiveMQDestination destination, long timeout) throws Exception
RegionremoveDestination 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 quiesceException - TODOpublic void start() throws Exception
start in interface Servicestart in class BrokerFilterExceptionpublic void stop() throws Exception
stop in interface Servicestop in class BrokerFilterExceptionpublic void addSession(ConnectionContext context, SessionInfo info) throws Exception
BrokeraddSession in interface BrokeraddSession in class BrokerFilterException - TODOpublic void removeSession(ConnectionContext context, SessionInfo info) throws Exception
BrokerremoveSession in interface BrokerremoveSession in class BrokerFilterException - TODOpublic void gc()
gc in interface Regiongc in class BrokerFilterpublic void addBroker(Connection connection, BrokerInfo info)
BrokeraddBroker in interface BrokeraddBroker in class BrokerFilterprotected Broker[] getListeners()
public void addListener(Broker broker)
public void removeListener(Broker broker)
protected List<Broker> getListenersAsList()
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.