Package org.eclipse.net4j.util.cache
Class Cache<E>
- java.lang.Object
- 
- org.eclipse.net4j.util.event.Notifier
- 
- org.eclipse.net4j.util.lifecycle.Lifecycle
- 
- org.eclipse.net4j.util.concurrent.Worker
- 
- org.eclipse.net4j.util.cache.Cache<E>
 
 
 
 
- 
- All Implemented Interfaces:
- ICache,- INotifier,- INotifier.INotifier2,- IDeactivateable,- ILifecycle,- ILifecycle.DeferrableActivation
 
 public abstract class Cache<E> extends Worker implements ICache - Author:
- Eike Stepper
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.eclipse.net4j.util.concurrent.WorkerWorker.WorkContext
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycleILifecycle.DeferrableActivation
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifierINotifier.INotifier2
 
- 
 - 
Field Summary- 
Fields inherited from class org.eclipse.net4j.util.concurrent.WorkerDEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
 
- 
 - 
Constructor SummaryConstructors Constructor Description Cache()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoActivate()protected voiddoBeforeActivate()protected voiddoDeactivate()ICacheMonitorgetCacheMonitor()protected ICacheProbegetCacheProbe()protected java.lang.ref.ReferenceQueue<E>getReferenceQueue()voidsetCacheMonitor(ICacheMonitor cacheMonitor)protected voidunreachableElement(E element)protected voidunreachableElement(java.lang.ref.Reference<? extends E> reference)protected voidwork(Worker.WorkContext context)- 
Methods inherited from class org.eclipse.net4j.util.concurrent.WorkergetActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getThreadName, getWorkerThread, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler
 - 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycleactivate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
 - 
Methods inherited from class org.eclipse.net4j.util.event.NotifieraddListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.net4j.util.cache.ICacheevictElements
 - 
Methods inherited from interface org.eclipse.net4j.util.event.INotifieraddListener, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getCacheMonitorpublic ICacheMonitor getCacheMonitor() - Specified by:
- getCacheMonitorin interface- ICache
 
 - 
setCacheMonitorpublic void setCacheMonitor(ICacheMonitor cacheMonitor) 
 - 
getCacheProbeprotected ICacheProbe getCacheProbe() 
 - 
getReferenceQueueprotected java.lang.ref.ReferenceQueue<E> getReferenceQueue() 
 - 
doBeforeActivateprotected void doBeforeActivate() throws java.lang.Exception- Overrides:
- doBeforeActivatein class- Lifecycle
- Throws:
- java.lang.Exception
 
 - 
doActivateprotected void doActivate() throws java.lang.Exception- Overrides:
- doActivatein class- Worker
- Throws:
- java.lang.Exception
 
 - 
doDeactivateprotected void doDeactivate() throws java.lang.Exception- Overrides:
- doDeactivatein class- Worker
- Throws:
- java.lang.Exception
 
 - 
workprotected void work(Worker.WorkContext context) throws java.lang.Exception 
 - 
unreachableElementprotected void unreachableElement(java.lang.ref.Reference<? extends E> reference) 
 - 
unreachableElementprotected void unreachableElement(E element) 
 
- 
 
-