@Deprecated public class WaitingThread extends Object
Constructor and Description |
---|
WaitingThread(Condition cond,
RouteSpecificPool pool)
Deprecated.
Creates a new entry for a waiting thread.
|
Modifier and Type | Method and Description |
---|---|
boolean |
await(Date deadline)
Deprecated.
Blocks the calling thread.
|
Condition |
getCondition()
Deprecated.
Obtains the condition.
|
RouteSpecificPool |
getPool()
Deprecated.
Obtains the pool, if there is one.
|
Thread |
getThread()
Deprecated.
Obtains the thread, if there is one.
|
void |
interrupt()
Deprecated.
|
void |
wakeup()
Deprecated.
Wakes up the waiting thread.
|
public WaitingThread(Condition cond, RouteSpecificPool pool)
cond
- the condition for which to waitpool
- the pool on which the thread will be waiting,
or null
public final Condition getCondition()
null
public final RouteSpecificPool getPool()
null
public final Thread getThread()
null
public boolean await(Date deadline) throws InterruptedException
deadline
- when to time out, or null
for no timeouttrue
if the condition was satisfied,
false
in case of a timeout.
Typically, a call to wakeup()
is used to indicate
that the condition was satisfied. Since the condition is
accessible outside, this cannot be guaranteed though.InterruptedException
- if the waiting thread was interruptedwakeup()
public void wakeup()
public void interrupt()
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.