Package org.eclipse.net4j.util.ref
Class ReferenceQueueWorker<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>
- All Implemented Interfaces:
INotifier,INotifier.INotifier2,IDeactivateable,ILifecycle,ILifecycle.DeferrableActivation
- Direct Known Subclasses:
ReferenceMonitor
- Since:
- 2.0
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.net4j.util.concurrent.Worker
Worker.Terminate, Worker.WorkContextNested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class org.eclipse.net4j.util.concurrent.Worker
DEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlongprotected ReferenceQueue<T>getQueue()voidsetMaxWorkPerPoll(int maxWorkPerPoll) voidsetPollMillis(long pollMillis) protected abstract voidprotected final voidwork(Worker.WorkContext context) Methods inherited from class org.eclipse.net4j.util.concurrent.Worker
doActivate, doDeactivate, getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getThreadName, getWorkerThread, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandlerMethods 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, toStringMethods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Field Details
-
ALL_WORK_PER_POLL
public static final int ALL_WORK_PER_POLL- Since:
- 3.0
- See Also:
-
DEFAULT_MAX_WORK_PER_POLL
public static final int DEFAULT_MAX_WORK_PER_POLL- Since:
- 3.0
- See Also:
-
DEFAULT_POLL_MILLIS
public static final int DEFAULT_POLL_MILLIS- Since:
- 3.0
- See Also:
-
-
Constructor Details
-
ReferenceQueueWorker
public ReferenceQueueWorker()
-
-
Method Details