Class ExpirationTimer
java.lang.Object
java.lang.Thread
org.apache.uima.collection.impl.cpm.utils.ExpirationTimer
- All Implemented Interfaces:
Runnable
Facilitates cleaning up resources associated with chunking/sequencing logic.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) CPMEngine
private final String
private final HashMap
private final long
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
ConstructorsConstructorDescriptionExpirationTimer
(long aTimeout, HashMap aMap, String aKey, CPMEngine aCpm) Constructs a Timer that expires after a given interval. -
Method Summary
Methods inherited from class java.lang.Thread
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, yield
-
Field Details
-
timeOut
private final long timeOut -
map
-
key
-
cpm
CPMEngine cpm
-
-
Constructor Details
-
ExpirationTimer
Constructs a Timer that expires after a given interval. It keeps the map from growing indefinitely. Its main purpose is to remove entries from a given map using a provided key.
-
-
Method Details