Class AbstractFuture.Cancellation

  • Enclosing class:
    AbstractFuture<V>

    private static final class AbstractFuture.Cancellation
    extends java.lang.Object
    A special value to represent cancellation and the 'wasInterrupted' bit.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Throwable cause  
      (package private) boolean wasInterrupted  
    • Constructor Summary

      Constructors 
      Constructor Description
      Cancellation​(boolean wasInterrupted, java.lang.Throwable cause)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • wasInterrupted

        final boolean wasInterrupted
      • cause

        @Nullable
        final java.lang.Throwable cause
    • Constructor Detail

      • Cancellation

        Cancellation​(boolean wasInterrupted,
                     @Nullable
                     java.lang.Throwable cause)