@Deprecated public class RefQueueWorker extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected RefQueueHandler |
refHandler
Deprecated.
The handler for the references found.
|
protected ReferenceQueue<?> |
refQueue
Deprecated.
The reference queue to monitor.
|
protected Thread |
workerThread
Deprecated.
The thread executing this handler.
|
Constructor and Description |
---|
RefQueueWorker(ReferenceQueue<?> queue,
RefQueueHandler handler)
Deprecated.
Instantiates a new worker to listen for lost connections.
|
protected final ReferenceQueue<?> refQueue
protected final RefQueueHandler refHandler
protected volatile Thread workerThread
public RefQueueWorker(ReferenceQueue<?> queue, RefQueueHandler handler)
queue
- the queue on which to wait for referenceshandler
- the handler to pass the references topublic void run()
shutdown()
. Only one thread can
execute the main loop at any time.public void shutdown()
run()
.Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.