Class AbstractIoWriteFuture

    • Constructor Detail

      • AbstractIoWriteFuture

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

      • verify

        public IoWriteFuture verify​(long timeout)
                             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
        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()
        Specified by:
        getException in interface IoWriteFuture
        Returns:
        the cause of the write failure if and only if the write operation has failed due to an Exception. Otherwise, null is returned (use WaitableFuture.isDone() to distinguish between the two.
      • fulfilled

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