|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncClientFactory
Used to create multiple "sibling" async clients that share an Executor, broker URI, etc.
| Method Summary | |
|---|---|
MqttClient |
newAsyncClient(AsyncClientListener asyncClientListener)
Creates an asynchronous client. |
void |
shutdown()
Stops this factory. |
| Method Detail |
|---|
void shutdown()
MqttClient newAsyncClient(AsyncClientListener asyncClientListener)
throws IllegalStateException
client. You may only use this method if the factory was constructed to create asynchronous clients.
asyncClientListener - Handles events from this client's channel. Use AsyncClientListener.NULL_LISTENER if you don't want to receive messages or be notified
of events.
client
IllegalStateException - If this factory was constructed to create synchronous clients and not asynchronous clients.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||