Class WriteTask

  • All Implemented Interfaces:
    java.util.concurrent.Future<ReadWriteResult>

    public class WriteTask
    extends java.lang.Object
    implements java.util.concurrent.Future<ReadWriteResult>
    • Field Detail

      • MSG_PREFIX

        public final java.lang.String MSG_PREFIX
      • cancelled

        protected boolean cancelled
      • done

        protected boolean done
    • Method Detail

      • get

        public ReadWriteResult get​(long timeout,
                                   java.util.concurrent.TimeUnit unit)
                            throws java.lang.InterruptedException,
                                   java.util.concurrent.ExecutionException,
                                   java.util.concurrent.TimeoutException
        Specified by:
        get in interface java.util.concurrent.Future<ReadWriteResult>
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.util.concurrent.TimeoutException
      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Specified by:
        cancel in interface java.util.concurrent.Future<ReadWriteResult>
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface java.util.concurrent.Future<ReadWriteResult>
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface java.util.concurrent.Future<ReadWriteResult>