Class LateralCacheMonitor
java.lang.Object
java.lang.Thread
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitor
org.apache.commons.jcs3.auxiliary.lateral.LateralCacheMonitor
- All Implemented Interfaces:
- Runnable
Used to monitor and repair any failed connection for the lateral cache service. By default the
 monitor operates in a failure driven mode. That is, it goes into a wait state until there is an
 error. Upon the notification of a connection error, the monitor changes to operate in a time
 driven mode. That is, it attempts to recover the connections on a periodic basis. When all failed
 connections are restored, it changes back to the failure driven mode.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.ThreadThread.State, Thread.UncaughtExceptionHandler
- 
Field SummaryFields inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitorallright, idlePeriod, logFields inherited from class java.lang.ThreadMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor for the LateralCacheMonitor object
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddCache(LateralCacheNoWait<?, ?> cache) Add a cache to be monitoredvoiddispose()Clean up all resources before shutdownvoiddoWork()Main processing method for the LateralCacheMonitor objectprotected static voidforceShortIdlePeriod(long idlePeriod) Deprecated.Use setIdlePeriod()Methods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitornotifyError, notifyShutdown, run, setIdlePeriodMethods inherited from class java.lang.ThreadactiveCount, 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
- 
Constructor Details- 
LateralCacheMonitorConstructor for the LateralCacheMonitor objectIt's the clients responsibility to decide how many of these there will be. - Parameters:
- factory- a reference to the factory that manages the service instances
 
 
- 
- 
Method Details- 
forceShortIdlePeriodDeprecated.Use setIdlePeriod()Allows close classes, ie testers to set the idle period to something testable.- Parameters:
- idlePeriod-
 
- 
addCacheAdd a cache to be monitored- Parameters:
- cache- the cache
 
- 
disposeClean up all resources before shutdown- Specified by:
- disposein class- AbstractAuxiliaryCacheMonitor
 
- 
doWorkMain processing method for the LateralCacheMonitor object- Specified by:
- doWorkin class- AbstractAuxiliaryCacheMonitor
 
 
-