Modifier and Type | Class and Description |
---|---|
static class |
NatsRequestCompletableFuture.CancelAction |
Constructor and Description |
---|
NatsRequestCompletableFuture(NatsRequestCompletableFuture.CancelAction cancelAction,
java.time.Duration timeout,
boolean useTimeoutException) |
Modifier and Type | Method and Description |
---|---|
void |
cancelClosing() |
void |
cancelTimedOut() |
NatsRequestCompletableFuture.CancelAction |
getCancelAction() |
boolean |
hasExceededTimeout() |
boolean |
useTimeoutException() |
boolean |
wasCancelledClosing() |
boolean |
wasCancelledTimedOut() |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, obtrudeException, obtrudeValue, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
public NatsRequestCompletableFuture(NatsRequestCompletableFuture.CancelAction cancelAction, java.time.Duration timeout, boolean useTimeoutException)
public void cancelClosing()
public void cancelTimedOut()
public NatsRequestCompletableFuture.CancelAction getCancelAction()
public boolean useTimeoutException()
public boolean hasExceededTimeout()
public boolean wasCancelledClosing()
public boolean wasCancelledTimedOut()