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, ILifecycle, ILifecycle.DeferrableActivation
- 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, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString |
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 ReferenceQueue<E> getReferenceQueue()
doBeforeActivate
protected void doBeforeActivate()
throws Exception
- Overrides:
doBeforeActivate
in class Lifecycle
- Throws:
Exception
doActivate
protected void doActivate()
throws Exception
- Overrides:
doActivate
in class Worker
- Throws:
Exception
doDeactivate
protected void doDeactivate()
throws Exception
- Overrides:
doDeactivate
in class Worker
- Throws:
Exception
work
protected void work(Worker.WorkContext context)
throws Exception
- Specified by:
work
in class Worker
- Throws:
Exception
unreachableElement
protected void unreachableElement(Reference<? extends E> reference)
unreachableElement
protected void unreachableElement(E element)
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.