Package org.apache.axis2.transport.base
Class AckDecisionCallback
java.lang.Object
org.apache.axis2.transport.base.AckDecisionCallback
Async callback/latch that mediation completes with the final AckDecision.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawait(long timeoutMillis) Blocks up to timeout; returns the AckDecision or null if it times out.booleancomplete(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.
-
Constructor Details
-
AckDecisionCallback
public AckDecisionCallback()
-
-
Method Details
-
complete
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
Blocks up to timeout; returns the AckDecision or null if it times out.- Throws:
InterruptedException
-