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
FieldsModifier and TypeFieldDescriptionprivate final ReadableByteChannel
private final CountdownCloseable
private boolean
private final Charset
private final EventHandler<String>
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionLineConsumerThread
(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
-
Field Details
-
encoding
-
channel
-
eventHandler
-
countdownCloseable
-
disabled
private volatile boolean disabled
-
-
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
-