
public abstract class Cache<E> extends Worker implements ICache
Worker.WorkContextILifecycle.DeferrableActivationDEFAULT_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, setGlobalErrorHandleractivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringaddListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitevictElementsaddListener, getListeners, hasListeners, removeListenerpublic ICacheMonitor getCacheMonitor()
getCacheMonitor in interface ICachepublic void setCacheMonitor(ICacheMonitor cacheMonitor)
protected ICacheProbe getCacheProbe()
protected ReferenceQueue<E> getReferenceQueue()
protected void doBeforeActivate()
throws Exception
doBeforeActivate in class LifecycleExceptionprotected void doActivate()
throws Exception
doActivate in class WorkerExceptionprotected void doDeactivate()
throws Exception
doDeactivate in class WorkerExceptionprotected void work(Worker.WorkContext context) throws Exception
protected void unreachableElement(E element)
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.