org.apache.http.impl.conn.tsccm
Class WaitingThreadAborter
java.lang.Object
org.apache.http.impl.conn.tsccm.WaitingThreadAborter
@NotThreadSafe
public class WaitingThreadAborter
- extends Object
A simple class that can interrupt a WaitingThread
.
Must be called with the pool lock held.
- Since:
- 4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WaitingThreadAborter
public WaitingThreadAborter()
abort
public void abort()
- If a waiting thread has been set, interrupts it.
setWaitingThread
public void setWaitingThread(WaitingThread waitingThread)
- Sets the waiting thread. If this has already been aborted,
the waiting thread is immediately interrupted.
- Parameters:
waitingThread
- The thread to interrupt when aborting.
Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.