Class AmqpTransactionContext.DischargeCompletion
java.lang.Object
org.apache.qpid.jms.provider.amqp.AmqpTransactionContext.DischargeCompletion
- All Implemented Interfaces:
AsyncResult
- Enclosing class:
- AmqpTransactionContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDischargeCompletion(AsyncResult request, JmsTransactionInfo nextTx, boolean commit) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.qpid.jms.provider.amqp.AmqpTransactionContext.DeclareCompletionbooleanisCommit()booleanReturns true if the AsyncResult has completed.booleanvoidonDeclareFailure(ProviderException failure) voidvoidonDischargeFailure(ProviderException failure) voidvoidonFailure(ProviderException result) If the operation fails this method is invoked with the Exception that caused the failure.voidIf the operation succeeds the resulting value produced is set to null and the waiting parties are signaled.
-
Field Details
-
complete
protected boolean complete -
failure
-
-
Constructor Details
-
DischargeCompletion
-
-
Method Details
-
getDeclareCompletion
public org.apache.qpid.jms.provider.amqp.AmqpTransactionContext.DeclareCompletion getDeclareCompletion() -
isCommit
public boolean isCommit() -
isPipelined
public boolean isPipelined() -
onFailure
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
-
onDischargeFailure
-
isComplete
public boolean isComplete()Description copied from interface:AsyncResultReturns true if the AsyncResult has completed. The task is considered complete regardless if it succeeded or failed.- Specified by:
isCompletein interfaceAsyncResult- Returns:
- returns true if the asynchronous operation has completed.
-
getFailureCause
-