T - Type of the bean being createdpublic class AccumulateCsvResults<T> extends Thread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
AccumulateCsvResults(BlockingQueue<OrderedObject<T>> resultantBeansQueue,
BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue,
ConcurrentMap<Long,T> resultantBeanMap,
ConcurrentMap<Long,CsvException> thrownExceptionsMap)
The only accepted constructor for the accumulator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMustStop()
Checks whether the accumulator should shut itself down.
|
void |
run() |
void |
setMustStop(boolean mustStop)
Tells the accumulator whether it should stop.
|
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 AccumulateCsvResults(BlockingQueue<OrderedObject<T>> resultantBeansQueue, BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, ConcurrentMap<Long,T> resultantBeanMap, ConcurrentMap<Long,CsvException> thrownExceptionsMap)
resultantBeansQueue - A queue of beans coming out of the pool of
threads creating them. The accumulator pulls from this queue.thrownExceptionsQueue - A queue of
CsvException and its derivatives coming
out of the pool of threads creating beans. The accumulator pulls from
this queue.resultantBeanMap - The (ordered) map of beans that have been
created. The accumulator inserts into this map.thrownExceptionsMap - The (ordered) map of suppressed exceptions
thrown during bean creation. The accumulator inserts into this map.public boolean isMustStop()
public void setMustStop(boolean mustStop)
mustStop - Whether the accumulator should stopCopyright © 2019. All rights reserved.