net.sf.xenqtt.client
Interface SyncClientFactory
- All Superinterfaces:
- ClientFactory
- All Known Implementing Classes:
- MqttClientFactory
public interface SyncClientFactory
- extends ClientFactory
Used to create multiple "sibling" synchronous clients
that share an Executor
, broker URI, etc.
newSynchronousClient
MqttClient newSynchronousClient(MqttClientListener mqttClientListener)
throws IllegalStateException
- Creates a synchronous
client
. You may only use this method if the factory was constructed to create synchronous clients.
- Parameters:
mqttClientListener
- Handles events from this client's channel. Use MqttClientListener.NULL_LISTENER
if you don't want to receive messages or be notified
of events.
- Returns:
- A new synchronous
client
- Throws:
IllegalStateException
- If this factory was constructed to create asynchronous clients and not synchronous clients.
Copyright © 2013. All Rights Reserved.