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
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.net4j.util.concurrent.Worker
Worker.Terminate, Worker.WorkContext
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2
-
Field Summary
Fields inherited from class org.eclipse.net4j.util.concurrent.Worker
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected ICacheProbe
protected ReferenceQueue<E>
void
setCacheMonitor
(ICacheMonitor cacheMonitor) protected void
unreachableElement
(E element) protected void
unreachableElement
(Reference<? extends E> reference) protected void
work
(Worker.WorkContext context) Methods inherited from class org.eclipse.net4j.util.concurrent.Worker
getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getThreadName, getWorkerThread, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler
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
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.net4j.util.cache.ICache
evictElements
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
Cache
public Cache()
-
-
Method Details
-
getCacheMonitor
- Specified by:
getCacheMonitor
in interfaceICache
-
setCacheMonitor
-
getCacheProbe
-
getReferenceQueue
-
doBeforeActivate
- Overrides:
doBeforeActivate
in classLifecycle
- Throws:
Exception
-
doActivate
- Overrides:
doActivate
in classWorker
- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivate
in classWorker
- Throws:
Exception
-
work
-
unreachableElement
-
unreachableElement
-