|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--wtanaka.praya.RecipientResolver
RecipientResolver is a thread that resolves recipients. It has a pleaseDie method which can be called to cancel the resolver.
Return to
or the Praya Homepage
| Field Summary | |
private java.lang.Exception |
m_cannotResolveException
|
private long |
m_delay
|
private boolean |
m_isFinished
|
private boolean |
m_isResolved
|
private RecipientResolverListener |
m_listener
|
private Recipient |
m_recipient
|
private ResolvedRecipient |
m_resolvedRecipient
|
private boolean |
m_shouldDie
|
| Fields inherited from class java.lang.Thread |
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ |
| Constructor Summary | |
RecipientResolver(Recipient recipient,
RecipientResolverListener listener,
long delay)
Constructor. |
|
| Method Summary | |
Recipient |
getRecipient()
|
void |
pleaseDie()
Instructs this RecipientResolver to stop resolution. |
void |
run()
|
ResolvedRecipient |
waitForResolvedRecipient(long timeout)
|
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private boolean m_shouldDie
private Recipient m_recipient
private RecipientResolverListener m_listener
private boolean m_isFinished
private boolean m_isResolved
private ResolvedRecipient m_resolvedRecipient
private java.lang.Exception m_cannotResolveException
private long m_delay
| Constructor Detail |
public RecipientResolver(Recipient recipient,
RecipientResolverListener listener,
long delay)
delay - the number of milliseconds that this should wait
before it actually starts resolving.| Method Detail |
public void pleaseDie()
public void run()
run in class java.lang.Threadpublic Recipient getRecipient()
public ResolvedRecipient waitForResolvedRecipient(long timeout)
throws CannotResolveException,
java.lang.InterruptedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||