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
 
 public abstract class ReferenceQueueWorker<T> extends Worker - Since:
- 2.0
- Author:
- Eike Stepper
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.eclipse.net4j.util.concurrent.WorkerWorker.WorkContext
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycleILifecycle.DeferrableActivation
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifierINotifier.INotifier2
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static intALL_WORK_PER_POLLstatic intDEFAULT_MAX_WORK_PER_POLLstatic intDEFAULT_POLL_MILLIS- 
Fields inherited from class org.eclipse.net4j.util.concurrent.WorkerDEFAULT_ERROR_HANDLER, DEFAULT_TIMEOUT
 
- 
 - 
Constructor SummaryConstructors Constructor Description ReferenceQueueWorker()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetMaxWorkPerPoll()longgetPollMillis()protected java.lang.ref.ReferenceQueue<T>getQueue()voidsetMaxWorkPerPoll(int maxWorkPerPoll)voidsetPollMillis(long pollMillis)protected abstract voidwork(java.lang.ref.Reference<? extends T> reference)protected voidwork(Worker.WorkContext context)- 
Methods inherited from class org.eclipse.net4j.util.concurrent.WorkerdoActivate, doDeactivate, getActivationTimeout, getDeactivationTimeout, getGlobalErrorHandler, getThreadName, getWorkerThread, handleError, isDaemon, setActivationTimeout, setDaemon, setDeactivationTimeout, setGlobalErrorHandler
 - 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycleactivate, 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.NotifieraddListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.net4j.util.event.INotifieraddListener, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Field Detail- 
ALL_WORK_PER_POLLpublic static final int ALL_WORK_PER_POLL - Since:
- 3.0
- See Also:
- Constant Field Values
 
 - 
DEFAULT_MAX_WORK_PER_POLLpublic static final int DEFAULT_MAX_WORK_PER_POLL - Since:
- 3.0
- See Also:
- Constant Field Values
 
 - 
DEFAULT_POLL_MILLISpublic static final int DEFAULT_POLL_MILLIS - Since:
- 3.0
- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getPollMillispublic long getPollMillis() 
 - 
setPollMillispublic void setPollMillis(long pollMillis) 
 - 
getMaxWorkPerPollpublic int getMaxWorkPerPoll() 
 - 
setMaxWorkPerPollpublic void setMaxWorkPerPoll(int maxWorkPerPoll) 
 - 
getQueueprotected java.lang.ref.ReferenceQueue<T> getQueue() 
 - 
workprotected final void work(Worker.WorkContext context) throws java.lang.Exception 
 - 
workprotected abstract void work(java.lang.ref.Reference<? extends T> reference) 
 
- 
 
-