Class DeadlockDetectingCompletableFuture<T>

  • All Implemented Interfaces:
    CompletionStage<T>, Future<T>

    public class DeadlockDetectingCompletableFuture<T>
    extends CompletableFuture<T>
    A completable future that will throw from blocking operations if the current thread holds the session lock.

    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.

    Since:
    2.1.4