Class DefaultKeyExchangeFuture

    • Constructor Detail

      • DefaultKeyExchangeFuture

        public DefaultKeyExchangeFuture​(java.lang.Object id,
                                        java.lang.Object lock)
    • Method Detail

      • verify

        public KeyExchangeFuture verify​(long timeoutMillis)
                                 throws java.io.IOException
        Description copied from interface: VerifiableFuture
        Wait and verify that the operation was successful
        Specified by:
        verify in interface VerifiableFuture<KeyExchangeFuture>
        Parameters:
        timeoutMillis - Wait timeout in milliseconds
        Returns:
        The (same) future instance
        Throws:
        java.io.IOException - If failed to verify successfully on time
      • getException

        public java.lang.Throwable getException()
        Description copied from interface: KeyExchangeFuture
        Returns the cause of the exchange failure.
        Specified by:
        getException in interface KeyExchangeFuture
        Returns:
        null if the exchange operation is not finished yet, or if the connection attempt is successful (use WaitableFuture.isDone() to distinguish between the two).