Class ProcessOutputHandlerConfig
java.lang.Object
org.kiwiproject.beta.base.process.ProcessOutputHandlerConfig
Configuration class that can be used in conjunction with
ProcessOutputHandler.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final longstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintio.dropwizard.util.DataSizeThe size of the buffer that will be used when reading process output.io.dropwizard.util.DurationThe amount of time to sleep between reading output from the process.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.longtoString()
-
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
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
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
-