Class ProtonTransactionHandler
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.proton.transaction.ProtonTransactionHandler
-
- All Implemented Interfaces:
ProtonDeliveryHandler
public class ProtonTransactionHandler extends java.lang.Object implements ProtonDeliveryHandler
handles an amqp Coordinator to deal with transaction boundaries etc
-
-
Constructor Summary
Constructors Constructor Description ProtonTransactionHandler(AMQPSessionCallback sessionSPI, AMQPConnectionContext connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(boolean linkRemoteClose)voidclose(org.apache.qpid.proton.amqp.transport.ErrorCondition condition)org.apache.activemq.artemis.core.transaction.TransactiongetCurrentTransaction()voidonFlow(int credits, boolean drain)voidonMessage(org.apache.qpid.proton.engine.Delivery delivery)
-
-
-
Constructor Detail
-
ProtonTransactionHandler
public ProtonTransactionHandler(AMQPSessionCallback sessionSPI, AMQPConnectionContext connection)
-
-
Method Detail
-
onMessage
public void onMessage(org.apache.qpid.proton.engine.Delivery delivery) throws ActiveMQAMQPException- Specified by:
onMessagein interfaceProtonDeliveryHandler- Throws:
ActiveMQAMQPException
-
onFlow
public void onFlow(int credits, boolean drain)- Specified by:
onFlowin interfaceProtonDeliveryHandler
-
close
public void close(boolean linkRemoteClose) throws ActiveMQAMQPException- Specified by:
closein interfaceProtonDeliveryHandler- Throws:
ActiveMQAMQPException
-
close
public void close(org.apache.qpid.proton.amqp.transport.ErrorCondition condition) throws ActiveMQAMQPException- Specified by:
closein interfaceProtonDeliveryHandler- Throws:
ActiveMQAMQPException
-
getCurrentTransaction
public org.apache.activemq.artemis.core.transaction.Transaction getCurrentTransaction()
-
-