Class ProcessOutputHandlerConfig

java.lang.Object
org.kiwiproject.beta.base.process.ProcessOutputHandlerConfig

@Beta public class ProcessOutputHandlerConfig extends Object
Configuration class that can be used in conjunction with ProcessOutputHandler.
  • Field Details

    • DEFAULT_THREAD_POOL_SIZE

      public static final int DEFAULT_THREAD_POOL_SIZE
      See Also:
    • DEFAULT_BUFFER_SIZE_BYTES

      public static final int DEFAULT_BUFFER_SIZE_BYTES
      See Also:
    • DEFAULT_SLEEP_DURATION_MILLIS

      public static final long DEFAULT_SLEEP_DURATION_MILLIS
      See Also:
  • Constructor Details

    • ProcessOutputHandlerConfig

      public ProcessOutputHandlerConfig()
  • Method Details

    • bufferCapacityInBytes

      public int bufferCapacityInBytes()
    • sleepTimeInMillis

      public long sleepTimeInMillis()
    • getThreadPoolSize

      public Integer getThreadPoolSize()
      The number of threads to use when handling process output.
    • getBufferCapacity

      public io.dropwizard.util.DataSize getBufferCapacity()
      The size of the buffer that will be used when reading process output.
    • getSleepTime

      public io.dropwizard.util.Duration getSleepTime()
      The amount of time to sleep between reading output from the process.
    • setThreadPoolSize

      public void setThreadPoolSize(Integer threadPoolSize)
      The number of threads to use when handling process output.
    • setBufferCapacity

      public void setBufferCapacity(io.dropwizard.util.DataSize bufferCapacity)
      The size of the buffer that will be used when reading process output.
    • setSleepTime

      public void setSleepTime(io.dropwizard.util.Duration sleepTime)
      The amount of time to sleep between reading output from the process.
    • toString

      public String toString()
      Overrides:
      toString in class Object