public abstract class CleanableReferenceQueue<T> extends ReferenceQueue<T>
Modifier and Type | Field and Description |
---|---|
static int |
ALL_WORK_PER_POLL |
static int |
DEFAULT_MAX_WORK_PER_POLL |
static int |
DEFAULT_POLL_MILLIS |
Constructor and Description |
---|
CleanableReferenceQueue() |
Modifier and Type | Method and Description |
---|---|
void |
clean() |
protected abstract void |
cleanReference(Reference<? extends T> reference) |
protected abstract Reference<T> |
createReference(T object) |
int |
getMaxWorkPerPoll() |
long |
getPollMillis() |
void |
register(T object) |
void |
setMaxWorkPerPoll(int maxWorkPerPoll) |
void |
setPollMillis(long pollMillis) |
poll, remove, remove
public static final int ALL_WORK_PER_POLL
public static final int DEFAULT_MAX_WORK_PER_POLL
public static final int DEFAULT_POLL_MILLIS
public final long getPollMillis()
public final void setPollMillis(long pollMillis)
public final int getMaxWorkPerPoll()
public final void setMaxWorkPerPoll(int maxWorkPerPoll)
public final void register(T object)
public final void clean()
Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.