Class ProcessOutputHandlerConfig


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

      • DEFAULT_THREAD_POOL_SIZE

        public static final int DEFAULT_THREAD_POOL_SIZE
        See Also:
        Constant Field Values
      • DEFAULT_BUFFER_SIZE_BYTES

        public static final int DEFAULT_BUFFER_SIZE_BYTES
        See Also:
        Constant Field Values
      • DEFAULT_SLEEP_DURATION_MILLIS

        public static final long DEFAULT_SLEEP_DURATION_MILLIS
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProcessOutputHandlerConfig

        public ProcessOutputHandlerConfig()
    • Method Detail

      • 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.