Class ExecutorServiceFactory

java.lang.Object
nl.knaw.dans.lib.util.ExecutorServiceFactory

public class ExecutorServiceFactory extends Object
Factory for configuring and creating an ExecutorService in a DropWizard application. Click here for code examples.
  • Constructor Details

    • ExecutorServiceFactory

      public ExecutorServiceFactory()
  • Method Details

    • build

      public ExecutorService build(io.dropwizard.core.setup.Environment environment)
    • getNameFormat

      public String getNameFormat()
    • setNameFormat

      public void setNameFormat(String nameFormat)
    • getMinThreads

      public int getMinThreads()
    • setMinThreads

      public void setMinThreads(int minThreads)
    • getMaxThreads

      public int getMaxThreads()
    • setMaxThreads

      public void setMaxThreads(int maxThreads)
    • getKeepAliveTime

      public String getKeepAliveTime()
    • setKeepAliveTime

      public void setKeepAliveTime(String keepAliveTime)
    • getMaxQueueSize

      public int getMaxQueueSize()
    • setMaxQueueSize

      public void setMaxQueueSize(int maxQueueSize)