Constructor and Description |
---|
CommsSender(ClientComms clientComms,
ClientState clientState,
CommsTokenStore tokenStore,
OutputStream out) |
Modifier and Type | Method and Description |
---|---|
void |
run()
When an object implementing interface
Runnable is used to create a thread, starting
the thread causes the object's run method to be called in that separately executing
thread. |
void |
start(String threadName)
Starts up the Sender thread.
|
void |
stop()
Stops the Sender's thread.
|
public CommsSender(ClientComms clientComms, ClientState clientState, CommsTokenStore tokenStore, OutputStream out)
public void run()
Runnable
Runnable
is used to create a thread, starting
the thread causes the object's run
method to be called in that separately executing
thread.
The general contract of the method run
is that it may take any action whatsoever.
run
in interface Runnable
Thread.run()
public void start(String threadName)
public void stop()