Class ConseqServiceFactory

    • Method Detail

      • newInstance

        public static ConseqServiceFactory newInstance()
        Returns:
        ExecutorService factory with default concurrency
      • newInstance

        public static ConseqServiceFactory newInstance​(int concurrency)
        Parameters:
        concurrency - max number of tasks possible to be executed in parallel
        Returns:
        ExecutorService factory with given concurrency
      • shutdown

        public void shutdown()
        Description copied from interface: Terminable
        Nonblocking, initiates an orderly shutdown of all managed thread resources. Previously submitted tasks are executed, but no new tasks will be accepted. Invocation has no additional effect if already shut down.
        Specified by:
        shutdown in interface Terminable
      • isTerminated

        public boolean isTerminated()
        Description copied from interface: Terminable
        Nonblocking
        Specified by:
        isTerminated in interface Terminable
        Returns:
        true if all tasks of all managed executors have completed following shut down. Note that isTerminated is never true unless shutdown was called first.