Class AsyncMultiReader.ReaderThread

java.lang.Object
java.lang.Thread
com.northconcepts.datapipeline.core.AsyncMultiReader.ReaderThread
All Implemented Interfaces:
Runnable
Enclosing class:
AsyncMultiReader

public class AsyncMultiReader.ReaderThread extends Thread
Thread that opens one source reader, copies its records into the AsyncMultiReader's buffer and closes it.
  • Method Details

    • getReader

      public DataReader getReader()
    • isFinished

      public boolean isFinished()
    • isNotFinished

      public boolean isNotFinished()
    • getException

      public Throwable getException()
      Returns the exception that stopped this thread or null if it ended normally.
    • shutdown

      public AsyncMultiReader.ReaderThread shutdown()
      Asks this thread to stop by marking it finished and interrupting it; does nothing if it is already finished.
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • toString

      public String toString()
      Overrides:
      toString in class Thread