Class WrappedWorkerPool

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.Executor executor()
      Returns the executor.
      void shutdown()
      Shutdown this worker pool.
      • Methods inherited from class java.lang.Object

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

      • WrappedWorkerPool

        public WrappedWorkerPool​(java.util.concurrent.Executor wrapped)
        Constructs a new WrappedWorkerPool with the specified wrapped executor.
        Parameters:
        wrapped - the wrapped executor
      • WrappedWorkerPool

        public WrappedWorkerPool​(java.util.concurrent.Executor wrapped,
                                 boolean cascade)
        Constructs a new WrappedWorkerPool with the specified wrapped executor.
        Parameters:
        wrapped - the wrapped executor
        cascade - if the wrapped executor will be cascaded shutdown or not
    • Method Detail

      • executor

        public java.util.concurrent.Executor executor()
        Description copied from interface: WorkerPool
        Returns the executor.
        Specified by:
        executor in interface WorkerPool
        Returns:
        the executor
      • shutdown

        public void shutdown()
        Description copied from interface: WorkerPool
        Shutdown this worker pool.
        Specified by:
        shutdown in interface WorkerPool