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.lifecycle.Worker
org.eclipse.net4j.util.cache.Cache<E>
- All Implemented Interfaces:
- ICache, INotifier, INotifier.Introspection, ILifecycle, ILifecycle.Introspection
public abstract class Cache<E>
- extends Worker
- implements ICache
Constructor Summary |
Cache()
|
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, deferredDeactivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, isDeferredDeactivation, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Cache
public Cache()
getCacheMonitor
public ICacheMonitor getCacheMonitor()
- Specified by:
getCacheMonitor
in interface ICache
setCacheMonitor
public void setCacheMonitor(ICacheMonitor cacheMonitor)
getCacheProbe
protected ICacheProbe getCacheProbe()
getReferenceQueue
protected java.lang.ref.ReferenceQueue<E> getReferenceQueue()
doBeforeActivate
protected void doBeforeActivate()
throws java.lang.Exception
- Overrides:
doBeforeActivate
in class Lifecycle
- Throws:
java.lang.Exception
doActivate
protected void doActivate()
throws java.lang.Exception
- Overrides:
doActivate
in class Worker
- Throws:
java.lang.Exception
doDeactivate
protected void doDeactivate()
throws java.lang.Exception
- Overrides:
doDeactivate
in class Worker
- Throws:
java.lang.Exception
work
protected void work(Worker.WorkContext context)
throws java.lang.Exception
- Specified by:
work
in class Worker
- Throws:
java.lang.Exception
unreachableElement
protected void unreachableElement(java.lang.ref.Reference<? extends E> reference)
unreachableElement
protected void unreachableElement(E element)