Class AbstractIoWriteFuture

    • Constructor Detail

      • AbstractIoWriteFuture

        protected AbstractIoWriteFuture​(java.lang.Object id,
                                        java.lang.Object lock)
    • Method Detail

      • verify

        public IoWriteFuture verify​(long timeout,
                                    CancelOption... options)
                             throws java.io.IOException
        Description copied from interface: VerifiableFuture
        Wait and verify that the operation was successful
        Specified by:
        verify in interface VerifiableFuture<IoWriteFuture>
        Parameters:
        timeout - Wait timeout in milliseconds
        options - Optional CancelOptions defining the behavior on time-out or interrupt; ignored if the future is not Cancellable.
        Returns:
        The (same) future instance
        Throws:
        java.io.IOException - If failed to verify successfully on time
      • isWritten

        public boolean isWritten()
        Specified by:
        isWritten in interface IoWriteFuture
        Returns:
        true if the write operation is finished successfully.
      • getException

        public java.lang.Throwable getException()
        Description copied from interface: HasException
        Returns the cause of the failure.
        Specified by:
        getException in interface HasException
        Returns:
        the Throwable of the failure, or null if not failed (yet).
      • fulfilled

        public static IoWriteFuture fulfilled​(java.lang.Object id,
                                              java.lang.Object value)