Class AmqpTransactionCoordinator
java.lang.Object
org.apache.activemq.transport.amqp.protocol.AmqpAbstractLink<org.apache.qpid.proton.engine.Receiver>
org.apache.activemq.transport.amqp.protocol.AmqpAbstractReceiver
org.apache.activemq.transport.amqp.protocol.AmqpTransactionCoordinator
- All Implemented Interfaces:
AmqpLink,AmqpResource
Implements the AMQP Transaction Coordinator support to manage local
transactions between an AMQP client and the broker.
-
Field Summary
Fields inherited from class org.apache.activemq.transport.amqp.protocol.AmqpAbstractReceiver
configuredCredit, current, recvBufferFields inherited from class org.apache.activemq.transport.amqp.protocol.AmqpAbstractLink
closeActions, closed, endpoint, opened, session -
Constructor Summary
ConstructorsConstructorDescriptionAmqpTransactionCoordinator(AmqpSession session, org.apache.qpid.proton.engine.Receiver endpoint) Creates a new Transaction coordinator used to manage AMQP transactions. -
Method Summary
Modifier and TypeMethodDescriptionvoidenlist(AmqpSession session) org.apache.activemq.command.ActiveMQDestinationprotected voidprocessDelivery(org.apache.qpid.proton.engine.Delivery delivery, org.fusesource.hawtbuf.Buffer deliveryBytes) voidsetDestination(org.apache.activemq.command.ActiveMQDestination destination) Sets the ActiveMQDestination that this link will be servicing.Methods inherited from class org.apache.activemq.transport.amqp.protocol.AmqpAbstractReceiver
commit, delivery, detach, flow, flow, getConfiguredReceiverCredit, rollbackMethods inherited from class org.apache.activemq.transport.amqp.protocol.AmqpAbstractLink
addCloseAction, close, close, getEndpoint, getSession, isClosed, isOpened, open, sendToActiveMQ, sendToActiveMQ
-
Constructor Details
-
AmqpTransactionCoordinator
public AmqpTransactionCoordinator(AmqpSession session, org.apache.qpid.proton.engine.Receiver endpoint) Creates a new Transaction coordinator used to manage AMQP transactions.- Parameters:
session- the AmqpSession under which the coordinator was created.endpoint- the AMQP receiver link endpoint for this coordinator.
-
-
Method Details
-
processDelivery
protected void processDelivery(org.apache.qpid.proton.engine.Delivery delivery, org.fusesource.hawtbuf.Buffer deliveryBytes) throws Exception - Specified by:
processDeliveryin classAmqpAbstractReceiver- Throws:
Exception
-
getDestination
public org.apache.activemq.command.ActiveMQDestination getDestination()- Returns:
- the ActiveMQDestination that this link is servicing.
-
setDestination
public void setDestination(org.apache.activemq.command.ActiveMQDestination destination) Description copied from interface:AmqpLinkSets the ActiveMQDestination that this link will be servicing.- Parameters:
destination- the ActiveMQDestination that this link services.
-
enlist
-