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()
           
 int getNextMessageId()
           
 void 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.

send

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


getNextMessageId

public int getNextMessageId()
Returns:
The message ID to use for the next identifiable message sent to this client by the broker

close

public void close()
Closes the connection to this client



Copyright © 2013. All Rights Reserved.