Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ReaderScan(Vector<ReaderHolder> readers,
int index,
BlockingQueue<RecordBufferEntry> buf,
Queue<EventEntry> events,
long timeout,
TimeUnit timeUnit,
String uid,
OperationMode operationMode)
Creates a new
ReaderScan working on some input ForwardReader |
| Modifier and Type | Method and Description |
|---|---|
Pair<RecordBufferEntry,Integer> |
peek() |
Pair<RecordBufferEntry,Integer> |
poll() |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ReaderScan(Vector<ReaderHolder> readers, int index, BlockingQueue<RecordBufferEntry> buf, Queue<EventEntry> events, long timeout, TimeUnit timeUnit, String uid, OperationMode operationMode)
ReaderScan working on some input ForwardReaderreaders - The ReaderHolder vector with the available input sourcesindex - The index of the ReaderHolder this thread should operate onbuf - The buffer to place the records read along with the id of the reader, which is equal to indexevents - A queue to place the events read along with the id of the reader, which is equal to indextimeout - The timeout to usetimeUnit - The timeout unit to useuid - A unique identifier for this operationoperationMode - The operation mode to usepublic void run()
run in interface Runnablerun in class ThreadRunnable.run()public Pair<RecordBufferEntry,Integer> poll()
public Pair<RecordBufferEntry,Integer> peek()
Copyright © 2017. All Rights Reserved.