Class LineConsumerThread
java.lang.Object
java.lang.Thread
org.apache.maven.surefire.extensions.CloseableDaemonThread
org.apache.maven.surefire.extensions.util.LineConsumerThread
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Runnable
,Stoppable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorDescriptionLineConsumerThread
(String threadName, ReadableByteChannel channel, EventHandler<String> eventHandler, CountdownCloseable countdownCloseable) LineConsumerThread
(String threadName, ReadableByteChannel channel, EventHandler<String> eventHandler, CountdownCloseable countdownCloseable, Charset encoding) -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
LineConsumerThread
public LineConsumerThread(@Nonnull String threadName, @Nonnull ReadableByteChannel channel, @Nonnull EventHandler<String> eventHandler, @Nonnull CountdownCloseable countdownCloseable) -
LineConsumerThread
public LineConsumerThread(@Nonnull String threadName, @Nonnull ReadableByteChannel channel, @Nonnull EventHandler<String> eventHandler, @Nonnull CountdownCloseable countdownCloseable, @Nonnull Charset encoding)
-
-
Method Details
-
run
public void run() -
disable
public void disable() -
close
- Throws:
IOException
-