Class ExecutorRegistry


  • @ThreadSafe
    public final class ExecutorRegistry
    extends java.lang.Object
    (WARNING) This class must be thread-safe. Maintains map between executor id and ExecutorRepresenter.
    • Method Detail

      • newInstance

        public static ExecutorRegistry newInstance()
        Static constructor for manual usage.
        Returns:
        a new instance of ExecutorRegistry.
      • viewExecutors

        public void viewExecutors​(java.util.function.Consumer<java.util.Set<ExecutorRepresenter>> consumer)
      • getNumberOfRunningExecutors

        public int getNumberOfRunningExecutors()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object