T - data signature typeV - data typepublic class VolumeEventDataHandler<T,V extends com.itextpdf.kernel.counter.data.EventData<T>>
extends com.itextpdf.kernel.counter.data.EventDataHandler<T,V>
EventDataHandler with Strategy pattern for handling
the processing logic with IVolumeWriter and the result processing logic with
IVolumeResultProcessor.| Modifier | Constructor and Description |
|---|---|
protected |
VolumeEventDataHandler(com.itextpdf.kernel.counter.data.IEventDataCache<T,V> cache,
com.itextpdf.kernel.counter.data.IEventDataFactory<T,V> factory,
long initialWaitTimeMillis,
long maxWaitTimeMillis) |
protected |
VolumeEventDataHandler(com.itextpdf.kernel.counter.data.IEventDataCache<T,V> cache,
com.itextpdf.kernel.counter.data.IEventDataFactory<T,V> factory,
long initialWaitTimeMillis,
long maxWaitTimeMillis,
IVolumeWriter<V> initialWriter,
IVolumeResultProcessor<V> initialResultProcessor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onFailure(V data) |
protected void |
onSuccess(V data) |
protected boolean |
process(V data) |
protected boolean |
updateWritingLogic(IVolumeWriter<V> newWriter,
IVolumeResultProcessor<V> newResultProcessor)
Update writing logic with corresponding result processor.
|
protected VolumeEventDataHandler(com.itextpdf.kernel.counter.data.IEventDataCache<T,V> cache, com.itextpdf.kernel.counter.data.IEventDataFactory<T,V> factory, long initialWaitTimeMillis, long maxWaitTimeMillis)
protected VolumeEventDataHandler(com.itextpdf.kernel.counter.data.IEventDataCache<T,V> cache, com.itextpdf.kernel.counter.data.IEventDataFactory<T,V> factory, long initialWaitTimeMillis, long maxWaitTimeMillis, IVolumeWriter<V> initialWriter, IVolumeResultProcessor<V> initialResultProcessor)
protected boolean process(V data)
protected void onSuccess(V data)
protected void onFailure(V data)
protected boolean updateWritingLogic(IVolumeWriter<V> newWriter, IVolumeResultProcessor<V> newResultProcessor)
newWriter - the new writer to setnewResultProcessor - the new result processor to settrue is at least one of writer or result processor instance changedCopyright © 2020. All rights reserved.