Class AckDecisionCallback

java.lang.Object
org.apache.axis2.transport.base.AckDecisionCallback

public final class AckDecisionCallback extends Object
Async callback/latch that mediation completes with the final AckDecision.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    await(long timeoutMillis)
    Blocks up to timeout; returns the AckDecision or null if it times out.
    boolean
    Attempts to set the final AckDecision exactly once (null defaults to SET_REQUEUE_ON_ROLLBACK), releases waiting threads via latch on success, and returns true only for the first caller.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AckDecisionCallback

      public AckDecisionCallback()
  • Method Details

    • complete

      public boolean complete(AckDecision decision)
      Attempts to set the final AckDecision exactly once (null defaults to SET_REQUEUE_ON_ROLLBACK), releases waiting threads via latch on success, and returns true only for the first caller.
    • await

      public AckDecision await(long timeoutMillis) throws InterruptedException
      Blocks up to timeout; returns the AckDecision or null if it times out.
      Throws:
      InterruptedException