net.sf.xenqtt.client
Interface ClientFactory

All Known Subinterfaces:
AsyncClientFactory, SyncClientFactory
All Known Implementing Classes:
MqttClientFactory

public interface ClientFactory

Base interface for SyncClientFactory and AsyncClientFactory.


Method Summary
 MessageStats getStats(boolean reset)
           
 void shutdown()
          Stops this factory.
 

Method Detail

shutdown

void shutdown()
Stops this factory. Closes all open connections to the broker. Blocks until shutdown is complete. Any other methods called after this have unpredictable results.


getStats

MessageStats getStats(boolean reset)
Parameters:
reset - If true the stats will be reset to 0 (where applicable) so the next time they are retrieved they will be for the time between the 2 calls to this method.
Returns:
A snapshot of the statistics for all the clients created by this factory.


Copyright © 2013. All Rights Reserved.