public final class EventDataHandlerUtil extends Object
EventDataHandler and comparator class,
that can be used in EventDataCacheComparatorBased.| Modifier and Type | Class and Description |
|---|---|
static class |
EventDataHandlerUtil.BiggerCountComparator<T,V extends EventData<T>>
Comparator class that can be used in
EventDataCacheComparatorBased. |
| Modifier and Type | Method and Description |
|---|---|
static <T,V extends EventData<T>> |
registerProcessAllShutdownHook(EventDataHandler<T,V> dataHandler)
Registers shutdown hook for
EventDataHandler that will try to process all the events that are left. |
static <T,V extends EventData<T>> |
registerTimedProcessing(EventDataHandler<T,V> dataHandler)
Creates thread that will try to trigger event processing with time interval from specified
EventDataHandler |
public static <T,V extends EventData<T>> void registerProcessAllShutdownHook(EventDataHandler<T,V> dataHandler)
EventDataHandler that will try to process all the events that are left.
It isn't guarantied that all events would be processed.T - the data signature typeV - the data typedataHandler - the EventDataHandler for which the hook will be registeredpublic static <T,V extends EventData<T>> void registerTimedProcessing(EventDataHandler<T,V> dataHandler)
EventDataHandlerT - the data signature typeV - the data typedataHandler - the EventDataHandler for which the thread will be registeredCopyright © 1998–2020 iText Group NV. All rights reserved.