| Constructor and Description |
|---|
CommsReceiver(ClientComms clientComms,
ClientState clientState,
CommsTokenStore tokenStore,
InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReceiving()
Returns the receiving state.
|
boolean |
isRunning() |
void |
run()
Run loop to receive messages from the server.
|
void |
start(String threadName,
ExecutorService executorService)
Starts up the Receiver's thread.
|
void |
stop()
Stops the Receiver's thread.
|
public CommsReceiver(ClientComms clientComms, ClientState clientState, CommsTokenStore tokenStore, InputStream in)
public void start(String threadName, ExecutorService executorService)
threadName - public void stop()
public void run()
public boolean isRunning()
public boolean isReceiving()
Copyright © 2018 Eclipse Paho. All Rights Reserved.