Class LineConsumerThread

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

    public final class LineConsumerThread
    extends CloseableDaemonThread
    • Nested Class Summary

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

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

      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • 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
    • Constructor Detail

      • LineConsumerThread

        public LineConsumerThread​(@Nonnull
                                  java.lang.String threadName,
                                  @Nonnull
                                  java.nio.channels.ReadableByteChannel channel,
                                  @Nonnull
                                  EventHandler<java.lang.String> eventHandler,
                                  @Nonnull
                                  CountdownCloseable countdownCloseable)
      • LineConsumerThread

        public LineConsumerThread​(@Nonnull
                                  java.lang.String threadName,
                                  @Nonnull
                                  java.nio.channels.ReadableByteChannel channel,
                                  @Nonnull
                                  EventHandler<java.lang.String> eventHandler,
                                  @Nonnull
                                  CountdownCloseable countdownCloseable,
                                  @Nonnull
                                  java.nio.charset.Charset encoding)
    • 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