public class TransactionBroker extends BrokerFilter
next| Constructor and Description | 
|---|
TransactionBroker(Broker next,
                 TransactionStore transactionStore)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
acknowledge(ConsumerBrokerExchange consumerExchange,
           MessageAck ack)
Used to acknowledge the receipt of a message by a client. 
 | 
void | 
beginTransaction(ConnectionContext context,
                TransactionId xid)
Starts a transaction. 
 | 
void | 
brokerServiceStarted()
called when the brokerService starts 
 | 
void | 
commitTransaction(ConnectionContext context,
                 TransactionId xid,
                 boolean onePhase)
Commits a transaction. 
 | 
void | 
forgetTransaction(ConnectionContext context,
                 TransactionId xid)
Forgets a transaction. 
 | 
TransactionId[] | 
getPreparedTransactions(ConnectionContext context)
Gets a list of all the prepared xa transactions. 
 | 
Transaction | 
getTransaction(ConnectionContext context,
              TransactionId xid,
              boolean mightBePrepared)  | 
int | 
prepareTransaction(ConnectionContext context,
                  TransactionId xid)
Prepares a transaction. 
 | 
void | 
removeConnection(ConnectionContext context,
                ConnectionInfo info,
                java.lang.Throwable error)
A client is disconnecting from the broker. 
 | 
void | 
removeTransaction(XATransactionId xid)  | 
void | 
rollbackTransaction(ConnectionContext context,
                   TransactionId xid)
Rollsback a transaction. 
 | 
void | 
send(ProducerBrokerExchange producerExchange,
    Message message)
Send a message to the broker to using the specified destination. 
 | 
void | 
start()
Recovers any prepared transactions. 
 | 
void | 
stop()  | 
addBroker, addConnection, addConsumer, addDestination, addDestinationInfo, addProducer, addSession, fastProducer, gc, getAdaptor, getAdminConnectionContext, getBrokerId, getBrokerName, getBrokerSequenceId, getBrokerService, getClients, getDestinationMap, getDestinations, getDestinations, getDurableDestinations, getExecutor, getPeerBrokerInfos, getRoot, getScheduler, getTempDataStore, getVmConnectorURI, isExpired, isFaultTolerantConfiguration, isFull, isStopped, messageConsumed, messageDelivered, messageDiscarded, messageExpired, messagePull, networkBridgeStarted, networkBridgeStopped, nowMasterBroker, postProcessDispatch, preProcessDispatch, processConsumerControl, processDispatchNotification, removeBroker, removeConsumer, removeDestination, removeDestinationInfo, removeProducer, removeSession, removeSubscription, sendToDeadLetterQueue, setAdminConnectionContext, slowConsumerpublic TransactionBroker(Broker next, TransactionStore transactionStore)
public void start()
           throws java.lang.Exception
start in interface Servicestart in class BrokerFilterjava.lang.Exceptionpublic void stop()
          throws java.lang.Exception
stop in interface Servicestop in class BrokerFilterjava.lang.Exceptionpublic TransactionId[] getPreparedTransactions(ConnectionContext context) throws java.lang.Exception
BrokergetPreparedTransactions in interface BrokergetPreparedTransactions in class BrokerFiltercontext - transaction idsjava.lang.Exception - TODOpublic void beginTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerbeginTransaction in interface BrokerbeginTransaction in class BrokerFilterjava.lang.Exception - TODOpublic int prepareTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerprepareTransaction in interface BrokerprepareTransaction in class BrokerFilterjava.lang.Exception - TODOpublic void commitTransaction(ConnectionContext context, TransactionId xid, boolean onePhase) throws java.lang.Exception
BrokercommitTransaction in interface BrokercommitTransaction in class BrokerFilterjava.lang.Exception - TODOpublic void rollbackTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerrollbackTransaction in interface BrokerrollbackTransaction in class BrokerFilterjava.lang.Exception - TODOpublic void forgetTransaction(ConnectionContext context, TransactionId xid) throws java.lang.Exception
BrokerforgetTransaction in interface BrokerforgetTransaction in class BrokerFilterjava.lang.Exceptionpublic void acknowledge(ConsumerBrokerExchange consumerExchange, MessageAck ack) throws java.lang.Exception
Regionacknowledge in interface Regionacknowledge in class BrokerFilterconsumerExchange - the environment the operation is being executed under.java.lang.Exception - TODOpublic void send(ProducerBrokerExchange producerExchange, Message message) throws java.lang.Exception
Regionsend in interface Regionsend in class BrokerFilterproducerExchange - the environment the operation is being executed under.java.lang.Exception - TODOpublic void removeConnection(ConnectionContext context, ConnectionInfo info, java.lang.Throwable error) throws java.lang.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.java.lang.Exception - TODOpublic Transaction getTransaction(ConnectionContext context, TransactionId xid, boolean mightBePrepared) throws javax.jms.JMSException, javax.transaction.xa.XAException
javax.jms.JMSExceptionjavax.transaction.xa.XAExceptionpublic void removeTransaction(XATransactionId xid)
public void brokerServiceStarted()
BrokerbrokerServiceStarted in interface BrokerbrokerServiceStarted in class BrokerFilterCopyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.