Package one.nio.async

Class CompletedFuture<V>

    • Constructor Detail

      • CompletedFuture

        public CompletedFuture​(V value)
    • Method Detail

      • cancel

        public boolean cancel​(boolean mayInterruptIfRunning)
        Specified by:
        cancel in interface Future<V>
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface Future<V>
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface Future<V>
      • get

        public V get()
        Specified by:
        get in interface Future<V>
      • get

        public V get​(long timeout,
                     TimeUnit unit)
        Specified by:
        get in interface Future<V>