Class Member


  extended by Object
      extended by Member

public class Member
extends Object

This class represents participant on Channel. System guarantees that the identity of member instances will remain equal for same user on given channel. Therefore it is safe to use Member instances, for instance, as a key for Map.

Since:
2.0.0

Method Summary
 String getId()
          Returns the unique identification string for this member.
 Value getInfo()
          Returns the associated info structure for this member.
 void send(String command, Value argument, ResponseCallback callback)
          Sends a message directly to this member.
 
Methods inherited from class Object
toString, equals, hashCode
 
Methods inherited from
equals, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public String getId()
Returns the unique identification string for this member.

Returns:
Unique id
Since:
2.0.0

getInfo

public Value getInfo()
Returns the associated info structure for this member.

Since:
2.0.0

send

public void send(String command,
                 Value argument,
                 ResponseCallback callback)
Sends a message directly to this member.

Parameters:
command - Name of command
argument - Command argument
callback - Optional callback if the response is expected. Callback will receive the response Value.
Since:
2.0.0