Package generic.concurrent.io
Class IOResult
- java.lang.Object
-
- generic.concurrent.io.IOResult
-
- All Implemented Interfaces:
java.lang.Runnable
public class IOResult extends java.lang.Object implements java.lang.Runnable
Class to pass to a thread pool that will consume all output from an external process. This is aRunnable
that get submitted to a thread pool. This class records the data it reads
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
THREAD_POOL_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getOutput()
java.lang.String
getOutputAsString()
void
run()
void
setConsumer(java.util.function.Consumer<java.lang.String> consumer)
-
-
-
Field Detail
-
THREAD_POOL_NAME
public static final java.lang.String THREAD_POOL_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setConsumer
public void setConsumer(java.util.function.Consumer<java.lang.String> consumer)
-
getOutputAsString
public java.lang.String getOutputAsString()
-
getOutput
public java.util.List<java.lang.String> getOutput()
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
-