|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.conn.tsccm.RefQueueWorker
@Deprecated public class RefQueueWorker
A worker thread for processing queued references.
Reference
s can be
queued
automatically by the garbage collector.
If that feature is used, a daemon thread should be executing
this worker. It will pick up the queued references and pass them
on to a handler for appropriate processing.
Field Summary | |
---|---|
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 Summary | |
---|---|
RefQueueWorker(ReferenceQueue<?> queue,
RefQueueHandler handler)
Deprecated. Instantiates a new worker to listen for lost connections. |
Method Summary | |
---|---|
void |
run()
Deprecated. The main loop of this worker. |
void |
shutdown()
Deprecated. Shuts down this worker. |
String |
toString()
Deprecated. Obtains a description of this worker. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final ReferenceQueue<?> refQueue
protected final RefQueueHandler refHandler
protected volatile Thread workerThread
Constructor Detail |
---|
public RefQueueWorker(ReferenceQueue<?> queue, RefQueueHandler handler)
queue
- the queue on which to wait for referenceshandler
- the handler to pass the references toMethod Detail |
---|
public void run()
shutdown()
. Only one thread can
execute the main loop at any time.
run
in interface Runnable
public void shutdown()
run()
.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |