Interface FuturePromiseFactory

    • Method Detail

      • newSucceededFuture

        default <V> Future<V> newSucceededFuture​(V result)
        Create a new Future which is marked as succeeded already. So AsynchronousResult.isSuccess() will return true. All FutureListener added to it will be notified directly. Also every call of blocking methods will just return without blocking.
      • newSucceededFuture

        default Future<Void> newSucceededFuture()
        Create a new Future which is marked as succeeded already. So AsynchronousResult.isSuccess() will return true. All FutureListener added to it will be notified directly. Also every call of blocking methods will just return without blocking.
      • newFailedFuture

        default <V> Future<V> newFailedFuture​(Throwable cause)
        Create a new Future which is marked as failed already. So AsynchronousResult.isSuccess() will return false. All FutureListener added to it will be notified directly. Also every call of blocking methods will just return without blocking.