Class AmqpTransactionContext.DischargeCompletion
- java.lang.Object
-
- org.apache.qpid.jms.provider.amqp.AmqpTransactionContext.DischargeCompletion
-
- All Implemented Interfaces:
AsyncResult
- Enclosing class:
- AmqpTransactionContext
public class AmqpTransactionContext.DischargeCompletion extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DischargeCompletion(AsyncResult request, JmsTransactionInfo nextTx, boolean commit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.qpid.jms.provider.amqp.AmqpTransactionContext.DeclareCompletiongetDeclareCompletion()booleanisCommit()booleanisPipelined()voidonDeclareFailure(ProviderException failure)voidonDeclareSuccess()voidonDischargeFailure(ProviderException failure)voidonDischargeSuccess()voidonFailure(ProviderException result)If the operation fails this method is invoked with the Exception that caused the failure.voidonSuccess()If the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.
-
-
-
Constructor Detail
-
DischargeCompletion
public DischargeCompletion(AsyncResult request, JmsTransactionInfo nextTx, boolean commit)
-
-
Method Detail
-
getDeclareCompletion
public org.apache.qpid.jms.provider.amqp.AmqpTransactionContext.DeclareCompletion getDeclareCompletion()
-
isCommit
public boolean isCommit()
-
isPipelined
public boolean isPipelined()
-
onFailure
public void onFailure(ProviderException result)
Description copied from interface:AsyncResultIf the operation fails this method is invoked with the Exception that caused the failure.- Parameters:
result- The error that resulted in this asynchronous operation failing.
-
onSuccess
public void onSuccess()
Description copied from interface:AsyncResultIf the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.
-
onDeclareSuccess
public void onDeclareSuccess()
-
onDischargeSuccess
public void onDischargeSuccess()
-
onDeclareFailure
public void onDeclareFailure(ProviderException failure)
-
onDischargeFailure
public void onDischargeFailure(ProviderException failure)
-
-