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 Object
  • Field Details

    • complete

      protected boolean complete
    • failure

      protected ProviderException failure
  • Constructor Details

  • Method Details

    • 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: AsyncResult
      If 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: AsyncResult
      If 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)
    • isComplete

      public boolean isComplete()
      Description copied from interface: AsyncResult
      Returns true if the AsyncResult has completed. The task is considered complete regardless if it succeeded or failed.
      Specified by:
      isComplete in interface AsyncResult
      Returns:
      returns true if the asynchronous operation has completed.
    • getFailureCause

      public ProviderException getFailureCause()