public class DeadlockDetectingCompletableFuture<T> extends CompletableFuture<T>
This is used for pending JS results because a response providing the value cannot be processed while the session is locked.
Throwing is unfortunately only practical for this immediate instance, but
there isn't any sensible way of also intercepting for instances derived using
e.g. thenAccept
.
For internal use only. May be renamed or removed in a future release.
CompletableFuture.AsynchronousCompletionTask
Constructor and Description |
---|
DeadlockDetectingCompletableFuture(VaadinSession session)
Creates a new deadlock detecting completable future tied to the given
session.
|
Modifier and Type | Method and Description |
---|---|
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
T |
join() |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, exceptionally, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, 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 DeadlockDetectingCompletableFuture(VaadinSession session)
session
- the session to use, or null
to not do any
deadlock checkingpublic T get() throws InterruptedException, ExecutionException
get
in interface Future<T>
get
in class CompletableFuture<T>
InterruptedException
ExecutionException
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<T>
get
in class CompletableFuture<T>
InterruptedException
ExecutionException
TimeoutException
public T join()
join
in class CompletableFuture<T>
Copyright © 2023. All rights reserved.