Package nl.knaw.dans.lib.util
Class ExecutorServiceFactory
java.lang.Object
nl.knaw.dans.lib.util.ExecutorServiceFactory
Factory for configuring and creating an ExecutorService in a DropWizard application.
Click here for code examples.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(io.dropwizard.core.setup.Environment environment) int
int
int
void
setKeepAliveTime
(String keepAliveTime) void
setMaxQueueSize
(int maxQueueSize) void
setMaxThreads
(int maxThreads) void
setMinThreads
(int minThreads) void
setNameFormat
(String nameFormat)
-
Constructor Details
-
ExecutorServiceFactory
public ExecutorServiceFactory()
-
-
Method Details
-
build
-
getNameFormat
-
setNameFormat
-
getMinThreads
public int getMinThreads() -
setMinThreads
public void setMinThreads(int minThreads) -
getMaxThreads
public int getMaxThreads() -
setMaxThreads
public void setMaxThreads(int maxThreads) -
getKeepAliveTime
-
setKeepAliveTime
-
getMaxQueueSize
public int getMaxQueueSize() -
setMaxQueueSize
public void setMaxQueueSize(int maxQueueSize)
-