public class LateralCacheMonitor extends AbstractAuxiliaryCacheMonitor
Thread.State, Thread.UncaughtExceptionHandler
allright, idlePeriod, log
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
LateralCacheMonitor(LateralTCPCacheFactory factory)
Constructor for the LateralCacheMonitor object
It's the clients responsibility to decide how many of these there will be.
|
Modifier and Type | Method and Description |
---|---|
void |
addCache(LateralCacheNoWait<?,?> cache)
Add a cache to be monitored
|
void |
dispose()
Clean up all resources before shutdown
|
void |
doWork()
Main processing method for the LateralCacheMonitor object
|
protected static void |
forceShortIdlePeriod(long idlePeriod)
Allows close classes, ie testers to set the idle period to something testable.
|
notifyError, notifyShutdown, run, setIdlePeriod
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
public LateralCacheMonitor(LateralTCPCacheFactory factory)
It's the clients responsibility to decide how many of these there will be.
factory
- a reference to the factory that manages the service instancesprotected static void forceShortIdlePeriod(long idlePeriod)
idlePeriod
- public void addCache(LateralCacheNoWait<?,?> cache)
cache
- the cachepublic void dispose()
dispose
in class AbstractAuxiliaryCacheMonitor
public void doWork()
doWork
in class AbstractAuxiliaryCacheMonitor
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.