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>> |
disableShutdownHooks(EventDataHandler<T,V> dataHandler)
Unregister shutdown hook for
EventDataHandler registered with
registerProcessAllShutdownHook(EventDataHandler). |
static <T,V extends EventData<T>> |
disableTimedProcessing(EventDataHandler<T,V> dataHandler)
Stop the timed processing thread registered with
registerTimedProcessing(EventDataHandler). |
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 disableShutdownHooks(EventDataHandler<T,V> dataHandler)
EventDataHandler registered with
registerProcessAllShutdownHook(EventDataHandler).T - the data signature typeV - the data typedataHandler - the EventDataHandler for which the hook will be unregisteredpublic static <T,V extends EventData<T>> void registerTimedProcessing(EventDataHandler<T,V> dataHandler)
EventDataHandler.T - the data signature typeV - the data typedataHandler - the EventDataHandler for which the thread will be registeredpublic static <T,V extends EventData<T>> void disableTimedProcessing(EventDataHandler<T,V> dataHandler)
registerTimedProcessing(EventDataHandler).T - the data signature typeV - the data typedataHandler - the EventDataHandler for which the thread will be registeredCopyright © 1998–2021 iText Group NV. All rights reserved.