WaitingThreadAborterpublic class WaitingThreadAborter extends Object A simple class that can interrupt a {@link WaitingThread}. |
Fields Summary |
---|
private WaitingThread | waitingThread | private boolean | aborted |
Methods Summary |
---|
public void | abort()If a waiting thread has been set, interrupts it.
aborted = true;
if (waitingThread != null)
waitingThread.interrupt();
| public void | setWaitingThread(org.apache.http.impl.conn.tsccm.WaitingThread waitingThread)Sets the waiting thread. If this has already been aborted,
the waiting thread is immediately interrupted.
this.waitingThread = waitingThread;
if (aborted)
waitingThread.interrupt();
|
|