Class AsyncMultiReader.ReaderThread
java.lang.Object
java.lang.Thread
com.northconcepts.datapipeline.core.AsyncMultiReader.ReaderThread
- All Implemented Interfaces:
Runnable
- Enclosing class:
AsyncMultiReader
Thread that opens one source reader, copies its records into the
AsyncMultiReader's buffer and closes it.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, yield
-
Method Details
-
getReader
-
isFinished
public boolean isFinished() -
isNotFinished
public boolean isNotFinished() -
getException
Returns the exception that stopped this thread or null if it ended normally. -
shutdown
Asks this thread to stop by marking it finished and interrupting it; does nothing if it is already finished. -
run
public void run() -
toString
-