Class Done

java.lang.Object
org.apache.pekko.Done
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Done$

public abstract class Done extends Object implements Serializable
Typically used together with Future to signal completion but there is no actual value completed. More clearly signals intent than Unit and is available both from Scala and Java (which Unit is not).
See Also:
  • Constructor Details

    • Done

      public Done()
  • Method Details

    • getInstance

      public static Done getInstance()
      Java API: the singleton instance
    • done

      public static Done done()
      Java API: the singleton instance

      This is equivalent to Done.getInstance, but can be used with static import.

    • productPrefix

      public static String productPrefix()
    • productArity

      public static int productArity()
    • productElement

      public static Object productElement(int x$1)
    • productIterator

      public static scala.collection.Iterator<Object> productIterator()
    • canEqual

      public static boolean canEqual(Object x$1)
    • hashCode

      public static int hashCode()
    • toString

      public static String toString()
    • equals

      public abstract static boolean equals(Object that)
    • productElementName

      public static String productElementName(int n)
    • productElementNames

      public static scala.collection.Iterator<String> productElementNames()