public class LifecycleManager extends Thread
LifecycleManager is a utility class that monitors the items registered with the GRSRegistry
and makes sure that they are properly purged when their lifecycle properties dictates their disposal. The property
that is taken into account in this decision is the last activity time of each entry. Whenever its inactivity
time has extended over the timeout set for each one, the item is disposed. The timeout that is taken into account
for IBuffers, is IBuffer.getInactivityTimeout() and IBuffer.getInactivityTimeUnit(). For
IBufferStores, is IBufferStore.getInactivityTimeout() and IBufferStore.getInactivityTimeUnit().DefaultCheckPeriod. During each iteration, the minimum of the non to be disposed remaining lifetime
is selected for both IBuffer and IBufferStore entries. At every subsequent iteration, this period is recomputed
to avoid unnecessary checksThread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static long |
DefaultCheckPeriod
The default check period.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
LifecycleManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
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, yieldpublic static final long DefaultCheckPeriod
Copyright © 2014. All Rights Reserved.