Class Syndicate.Close<T>

  • Type Parameters:
    T - the type of the values from the tasks
    Enclosing class:
    Syndicate<T>

    public static final class Syndicate.Close<T>
    extends Object
    Represent the operation used to shutdown the current ExecutorService running the Syndicate.
    • Constructor Detail

      • Close

        @Contract(pure=true)
        public Close​(Syndicate.Conductor<T> conductor)
        Constructor to create a new instance of Close.
        Parameters:
        conductor - existing instance of the Conductor
    • Method Detail

      • close

        public void close()
        Use to shutdown Thread Manually.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        @Contract(value="null -> false",
                  pure=true)
        public boolean equals​(Object o)
        Overrides:
        equals in class Object