net.sf.xenqtt.mockbroker
Class Client

java.lang.Object
  extended by net.sf.xenqtt.mockbroker.Client

public final class Client
extends Object

Info on a client connected to the mock broker


Method Summary
 void close()
          Closes the connection to this client
 String getClientId()
           
 boolean send(MqttMessage message)
          Sends the message to this client
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClientId

public String getClientId()
Returns:
The client ID of this client. Null if no ConnectMessage has been received.

close

public void close()
Closes the connection to this client


send

public boolean send(MqttMessage message)
Sends the message to this client

Returns:
true if the message was sent, false if the maximum number of in-flight messages has already been reached and this message was queued to be sent later.


Copyright © 2013. All Rights Reserved.