Class ReadTask

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

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

      • done

        protected java.util.concurrent.atomic.AtomicBoolean 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>