| Modifier and Type | Field and Description |
|---|---|
| private final SortedSet | |
| private boolean | |
| private final ConcurrentMap | |
| private final BlockingQueue | |
| private final ListValuedMap | thrownExceptionsMap
All access to this variable must be synchronized. |
| private final BlockingQueue |
| Access | Constructor and Description |
|---|---|
| pack-priv | AccumulateCsvResults(BlockingQueue<OrderedObject<T>>
A queue of beans coming out of the pool of
threads creating them. The accumulator pulls from this queue. resultantBeansQueue, BlockingQueue<OrderedObject<CsvException>> A queue of
thrownExceptionsQueue, SortedSet<Long> com. and its derivatives coming
out of the pool of threads creating beans. The accumulator pulls from
this queue.A list of outstanding record numbers so gaps
in ordering due to filtered input or exceptions
while converting can be detected. expectedRecords, ConcurrentMap<Long, T> The (ordered) map of beans that have been
created. The accumulator inserts into this map. resultantBeanMap, ListValuedMap<Long, CsvException> The map of suppressed exceptions thrown
during bean creation. The accumulator inserts into this map. All
access to this variable must be synchronized. thrownExceptionsMap)The only accepted constructor for the accumulator. |
| Modifier and Type | Method and Description |
|---|---|
| private synchronized boolean | Returns: Whether the accumulator should stopChecks whether the accumulator should shut itself down. |
| public void | run()
Overrides java. Implements java. This method is run by the thread when it executes. |
| pack-priv synchronized void | setMustStop(boolean
Whether the accumulator should stop mustStop)Tells the accumulator whether it should stop. |
| expectedRecords | back to summary |
|---|---|
| private final SortedSet<Long> expectedRecords | |
| mustStop | back to summary |
|---|---|
| private boolean mustStop | |
| resultantBeanMap | back to summary |
|---|---|
| private final ConcurrentMap<Long, T> resultantBeanMap | |
| resultantBeansQueue | back to summary |
|---|---|
| private final BlockingQueue<OrderedObject<T>> resultantBeansQueue | |
| thrownExceptionsMap | back to summary |
|---|---|
| private final ListValuedMap<Long, CsvException> thrownExceptionsMap All access to this variable must be synchronized. | |
| thrownExceptionsQueue | back to summary |
|---|---|
| private final BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue | |
| AccumulateCsvResults | back to summary |
|---|---|
| pack-priv AccumulateCsvResults(BlockingQueue<OrderedObject<T>> resultantBeansQueue, BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, SortedSet<Long> expectedRecords, ConcurrentMap<Long, T> resultantBeanMap, ListValuedMap<Long, CsvException> thrownExceptionsMap) The only accepted constructor for the accumulator.
| |
| isMustStop | back to summary |
|---|---|
| private synchronized boolean isMustStop() Checks whether the accumulator should shut itself down. This method must always be used to check the value of the signal boolean, because it's synchronized.
| |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
| |
| setMustStop | back to summary |
|---|---|
| pack-priv synchronized void setMustStop(boolean mustStop) Tells the accumulator whether it should stop. This method must always be used to set the value of the signal boolean, because it's synchronized.
| |