Package org.eclipse.net4j.util.ref
Class CleanableReferenceQueue<T>
- java.lang.Object
- 
- java.lang.ref.ReferenceQueue<T>
- 
- org.eclipse.net4j.util.ref.CleanableReferenceQueue<T>
 
 
- 
 public abstract class CleanableReferenceQueue<T> extends java.lang.ref.ReferenceQueue<T>- Since:
- 3.6
- Author:
- Eike Stepper
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intALL_WORK_PER_POLLstatic intDEFAULT_MAX_WORK_PER_POLLstatic intDEFAULT_POLL_MILLIS
 - 
Constructor SummaryConstructors Constructor Description CleanableReferenceQueue()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclean()protected abstract voidcleanReference(java.lang.ref.Reference<? extends T> reference)protected abstract java.lang.ref.Reference<T>createReference(T object)intgetMaxWorkPerPoll()longgetPollMillis()voidregister(T object)voidsetMaxWorkPerPoll(int maxWorkPerPoll)voidsetPollMillis(long pollMillis)
 
- 
- 
- 
Field Detail- 
ALL_WORK_PER_POLLpublic static final int ALL_WORK_PER_POLL - See Also:
- Constant Field Values
 
 - 
DEFAULT_MAX_WORK_PER_POLLpublic static final int DEFAULT_MAX_WORK_PER_POLL - See Also:
- Constant Field Values
 
 - 
DEFAULT_POLL_MILLISpublic static final int DEFAULT_POLL_MILLIS - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getPollMillispublic final long getPollMillis() 
 - 
setPollMillispublic final void setPollMillis(long pollMillis) 
 - 
getMaxWorkPerPollpublic final int getMaxWorkPerPoll() 
 - 
setMaxWorkPerPollpublic final void setMaxWorkPerPoll(int maxWorkPerPoll) 
 - 
registerpublic final void register(T object) 
 - 
cleanpublic final void clean() 
 - 
cleanReferenceprotected abstract void cleanReference(java.lang.ref.Reference<? extends T> reference) 
 
- 
 
-