Package io.ebeaninternal.server.lib
Class DaemonExecutorService
- java.lang.Object
-
- io.ebeaninternal.server.lib.DaemonExecutorService
-
public final class DaemonExecutorService extends Object
A "CachedThreadPool" based on Daemon threads.The Threads are created as needed and once idle live for 60 seconds.
-
-
Constructor Summary
Constructors Constructor Description DaemonExecutorService(int shutdownWaitSeconds, String namePrefix)
Construct the DaemonThreadPool.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(Runnable runnable)
Execute the Runnable.void
shutdown()
Shutdown this thread pool nicely if possible.
-
-
-
Constructor Detail
-
DaemonExecutorService
public DaemonExecutorService(int shutdownWaitSeconds, String namePrefix)
Construct the DaemonThreadPool.- Parameters:
shutdownWaitSeconds
- the time in seconds allowed for the pool to shutdown nicely. After this the pool is forced to shutdown.
-
-