public abstract class Cache<E> extends Worker implements ICache
Worker.WorkContext
ILifecycle.DeferrableActivation
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
Constructor and Description |
---|
Cache() |
Modifier and Type | Method and Description |
---|---|
protected void |
doActivate() |
protected void |
doBeforeActivate() |
protected void |
doDeactivate() |
ICacheMonitor |
getCacheMonitor() |
protected ICacheProbe |
getCacheProbe() |
protected ReferenceQueue<E> |
getReferenceQueue() |
void |
setCacheMonitor(ICacheMonitor cacheMonitor) |
protected void |
unreachableElement(E element) |
protected void |
unreachableElement(Reference<? extends E> reference) |
protected void |
work(Worker.WorkContext context) |
getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getThreadName, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
evictElements
addListener, getListeners, hasListeners, removeListener
public ICacheMonitor getCacheMonitor()
getCacheMonitor
in interface ICache
public void setCacheMonitor(ICacheMonitor cacheMonitor)
protected ICacheProbe getCacheProbe()
protected ReferenceQueue<E> getReferenceQueue()
protected void doBeforeActivate() throws Exception
doBeforeActivate
in class Lifecycle
Exception
protected void doActivate() throws Exception
doActivate
in class Worker
Exception
protected void doDeactivate() throws Exception
doDeactivate
in class Worker
Exception
protected void work(Worker.WorkContext context) throws Exception
protected void unreachableElement(E element)
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.