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 withProcessOutputHandler.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BUFFER_SIZE_BYTESstatic longDEFAULT_SLEEP_DURATION_MILLISstatic intDEFAULT_THREAD_POOL_SIZE
-
Constructor Summary
Constructors Constructor Description ProcessOutputHandlerConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbufferCapacityInBytes()io.dropwizard.util.DataSizegetBufferCapacity()The size of the buffer that will be used when reading process output.io.dropwizard.util.DurationgetSleepTime()The amount of time to sleep between reading output from the process.IntegergetThreadPoolSize()The number of threads to use when handling process output.voidsetBufferCapacity(io.dropwizard.util.DataSize bufferCapacity)The size of the buffer that will be used when reading process output.voidsetSleepTime(io.dropwizard.util.Duration sleepTime)The amount of time to sleep between reading output from the process.voidsetThreadPoolSize(Integer threadPoolSize)The number of threads to use when handling process output.longsleepTimeInMillis()StringtoString()
-
-
-
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
-
-
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.
-
-