public final class AckDecisionCallback
extends java.lang.Object
| Constructor and Description |
|---|
AckDecisionCallback() |
| Modifier and Type | Method and Description |
|---|---|
AckDecision |
await(long timeoutMillis)
Blocks up to timeout; returns the AckDecision or null if it times out.
|
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.
|
public boolean complete(AckDecision decision)
public AckDecision await(long timeoutMillis) throws java.lang.InterruptedException
java.lang.InterruptedExceptionCopyright © 2004-2025 The Apache Software Foundation. All Rights Reserved.