Class EventConsumerThread

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Runnable, Stoppable

    public class EventConsumerThread
    extends CloseableDaemonThread
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void disable()  
      void run()  
      • 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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • channel

        private final java.nio.channels.ReadableByteChannel channel
      • disabled

        private volatile boolean disabled
    • Constructor Detail

      • EventConsumerThread

        public EventConsumerThread​(@Nonnull
                                   java.lang.String threadName,
                                   @Nonnull
                                   java.nio.channels.ReadableByteChannel channel,
                                   @Nonnull
                                   EventHandler<Event> eventHandler,
                                   @Nonnull
                                   CountdownCloseable countdownCloseable,
                                   @Nonnull
                                   ForkNodeArguments arguments)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • disable

        public void disable()
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException