Class FutureImpl<R>

java.lang.Object
com.google.code.yanf4j.core.impl.FutureImpl<R>
All Implemented Interfaces:
Future<R>
Direct Known Subclasses:
ConnectFuture

public class FutureImpl<R> extends Object implements Future<R>
Simple Future implementation, which uses synchronization Object to synchronize during the lifecycle.
See Also:
  • Field Details

    • sync

      private final Object sync
    • isDone

      private boolean isDone
    • isCancelled

      private boolean isCancelled
    • failure

      private Throwable failure
    • result

      protected R result
  • Constructor Details

    • FutureImpl

      public FutureImpl()
    • FutureImpl

      public FutureImpl(Object sync)
  • Method Details