Class EventConsumerThread
java.lang.Object
java.lang.Thread
org.apache.maven.surefire.extensions.CloseableDaemonThread
org.apache.maven.plugin.surefire.extensions.EventConsumerThread
- 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 ForkNodeArguments
private final ReadableByteChannel
private final CountdownCloseable
private final EventDecoder
private boolean
private final EventHandler<Event>
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionEventConsumerThread
(String threadName, ReadableByteChannel channel, EventHandler<Event> eventHandler, CountdownCloseable countdownCloseable, ForkNodeArguments arguments) -
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
-
channel
-
eventHandler
-
countdownCloseable
-
decoder
-
arguments
-
disabled
private volatile boolean disabled
-
-
Constructor Details
-
EventConsumerThread
public EventConsumerThread(@Nonnull String threadName, @Nonnull ReadableByteChannel channel, @Nonnull EventHandler<Event> eventHandler, @Nonnull CountdownCloseable countdownCloseable, @Nonnull ForkNodeArguments arguments)
-
-
Method Details
-
run
public void run() -
disable
public void disable() -
close
- Throws:
IOException
-