public abstract class CleanableReferenceQueue<T>
extends java.lang.ref.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(java.lang.ref.Reference<? extends T> reference) |
protected abstract java.lang.ref.Reference<T> |
createReference(T object) |
int |
getMaxWorkPerPoll() |
long |
getPollMillis() |
void |
register(T object) |
void |
setMaxWorkPerPoll(int maxWorkPerPoll) |
void |
setPollMillis(long pollMillis) |
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()
protected abstract void cleanReference(java.lang.ref.Reference<? extends T> reference)
Copyright (c) 2004-2019 Eike Stepper (Loehne, 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