Package org.eclipse.net4j.util.ref
Class CleanableReferenceQueue<T>
java.lang.Object
java.lang.ref.ReferenceQueue<T>
org.eclipse.net4j.util.ref.CleanableReferenceQueue<T>
- Since:
- 3.6
- Author:
- Eike Stepper
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
clean()
protected abstract void
cleanReference
(Reference<? extends T> reference) createReference
(T object) final int
final long
final void
final void
setMaxWorkPerPoll
(int maxWorkPerPoll) final void
setPollMillis
(long pollMillis) Methods inherited from class java.lang.ref.ReferenceQueue
poll, remove, remove
-
Field Details
-
ALL_WORK_PER_POLL
public static final int ALL_WORK_PER_POLL- See Also:
-
DEFAULT_MAX_WORK_PER_POLL
public static final int DEFAULT_MAX_WORK_PER_POLL- See Also:
-
DEFAULT_POLL_MILLIS
public static final int DEFAULT_POLL_MILLIS- See Also:
-
-
Constructor Details
-
CleanableReferenceQueue
public CleanableReferenceQueue()
-
-
Method Details
-
getPollMillis
public final long getPollMillis() -
setPollMillis
public final void setPollMillis(long pollMillis) -
getMaxWorkPerPoll
public final int getMaxWorkPerPoll() -
setMaxWorkPerPoll
public final void setMaxWorkPerPoll(int maxWorkPerPoll) -
register
-
clean
public final void clean() -
cleanReference
-
createReference
-