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) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html