Package org.eclipse.net4j.util.ref
Class ReferenceMonitor<T>
- 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.ref.ReferenceQueueWorker<T>
-
- org.eclipse.net4j.util.ref.ReferenceMonitor<T>
-
- All Implemented Interfaces:
INotifier
,INotifier.INotifier2
,IDeactivateable
,ILifecycle
,ILifecycle.DeferrableActivation
public abstract class ReferenceMonitor<T> extends ReferenceQueueWorker<T>
- Since:
- 3.5
- Author:
- Eike Stepper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.net4j.util.concurrent.Worker
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.ref.ReferenceQueueWorker
ALL_WORK_PER_POLL, DEFAULT_MAX_WORK_PER_POLL, DEFAULT_POLL_MILLIS
-
Fields inherited from class org.eclipse.net4j.util.concurrent.Worker
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description ReferenceMonitor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
monitor(T object)
protected void
work(java.lang.ref.Reference<? extends T> reference)
protected abstract void
work(T object)
-
Methods inherited from class org.eclipse.net4j.util.ref.ReferenceQueueWorker
getMaxWorkPerPoll, getPollMillis, getQueue, setMaxWorkPerPoll, setPollMillis, work
-
Methods inherited from class org.eclipse.net4j.util.concurrent.Worker
doActivate, doDeactivate, 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, doBeforeActivate, 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.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
-