|
||||||||||
| 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.TransactionBroker
public class TransactionBroker
This broker filter handles the transaction related operations in the Broker interface.
| Field Summary |
|---|
| Fields inherited from class org.apache.activemq.broker.BrokerFilter |
|---|
next |
| Constructor Summary | |
|---|---|
TransactionBroker(Broker next,
TransactionStore transactionStore)
|
|
| Method Summary | |
|---|---|
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,
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionBroker(Broker next,
TransactionStore transactionStore)
| Method Detail |
|---|
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 TransactionId[] getPreparedTransactions(ConnectionContext context)
throws Exception
Broker
getPreparedTransactions in interface BrokergetPreparedTransactions in class BrokerFiltercontext - transaction ids
Exception - TODO
public void beginTransaction(ConnectionContext context,
TransactionId xid)
throws Exception
Broker
beginTransaction in interface BrokerbeginTransaction in class BrokerFilterException - TODO
public int prepareTransaction(ConnectionContext context,
TransactionId xid)
throws Exception
Broker
prepareTransaction in interface BrokerprepareTransaction in class BrokerFilterException - TODO
public void commitTransaction(ConnectionContext context,
TransactionId xid,
boolean onePhase)
throws Exception
Broker
commitTransaction in interface BrokercommitTransaction in class BrokerFilterException - TODO
public void rollbackTransaction(ConnectionContext context,
TransactionId xid)
throws Exception
Broker
rollbackTransaction in interface BrokerrollbackTransaction in class BrokerFilterException - TODO
public void forgetTransaction(ConnectionContext context,
TransactionId xid)
throws Exception
Broker
forgetTransaction in interface BrokerforgetTransaction in class BrokerFilterException
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 send(ProducerBrokerExchange producerExchange,
Message message)
throws Exception
Region
send in interface Regionsend in class BrokerFilterproducerExchange - the environment the operation is being executed under.
Exception - 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 Transaction getTransaction(ConnectionContext context,
TransactionId xid,
boolean mightBePrepared)
throws javax.jms.JMSException,
XAException
javax.jms.JMSException
XAExceptionpublic void removeTransaction(XATransactionId xid)
public void brokerServiceStarted()
Broker
brokerServiceStarted in interface BrokerbrokerServiceStarted in class BrokerFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||