| java.lang.Object java.lang.Thread com.sun.midp.links.Sender
Sender | class Sender extends Thread (Code) | | A thread that sends the given message on the given link.
|
Constructor Summary | |
| Sender(Link newlink, LinkMessage newmsg) Constructs a new Sender, starts its thread, and waits to give the new
thread a chance to block in send(). |
Method Summary | |
public void | await() Waits until the thread finishes or until a timeout has expired. | public void | completed(LinkMessage msg, Throwable thr) A completion callback. | public void | run() Sends a message and notifies when done, capturing any exceptions. |
TIMEOUT | final public static long TIMEOUT(Code) | | |
Sender | Sender(Link newlink, LinkMessage newmsg)(Code) | | Constructs a new Sender, starts its thread, and waits to give the new
thread a chance to block in send().
|
await | public void await()(Code) | | Waits until the thread finishes or until a timeout has expired.
|
completed | public void completed(LinkMessage msg, Throwable thr)(Code) | | A completion callback. Called after the thread returns from the send()
call. The msg parameter contains the message sent. The thr parameter
contains any Throwable caught, or null there was none. This is
intended to be overridden by a subclass. The default implementation
does nothing.
|
run | public void run()(Code) | | Sends a message and notifies when done, capturing any exceptions.
|
|
|