net.sf.xenqtt.client
Interface AsyncClientFactory
- All Superinterfaces:
- ClientFactory
- All Known Implementing Classes:
- MqttClientFactory
public interface AsyncClientFactory
- extends ClientFactory
Used to create multiple "sibling" async clients
that share an Executor
, broker URI, etc.
newAsyncClient
MqttClient newAsyncClient(AsyncClientListener asyncClientListener)
throws IllegalStateException
- Creates an asynchronous
client
. You may only use this method if the factory was constructed to create asynchronous clients.
- Parameters:
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.
- Returns:
- A new asynchronous
client
- Throws:
IllegalStateException
- If this factory was constructed to create synchronous clients and not asynchronous clients.
Copyright © 2013. All Rights Reserved.