com.hazelcast.client.impl
Class ClientServiceProxy

java.lang.Object
  extended by com.hazelcast.client.impl.ClientServiceProxy
All Implemented Interfaces:
ClientService

public final class ClientServiceProxy
extends Object
implements ClientService

The default implementation of the ClientService.


Constructor Summary
ClientServiceProxy(Node node)
           
 
Method Summary
 String addClientListener(ClientListener clientListener)
          Adds a ClientListener.
 Collection<Client> getConnectedClients()
          Returns all connected clients to this member.
 boolean removeClientListener(String registrationId)
          Removes a ClientListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientServiceProxy

public ClientServiceProxy(Node node)
Method Detail

getConnectedClients

public Collection<Client> getConnectedClients()
Description copied from interface: ClientService
Returns all connected clients to this member.

Specified by:
getConnectedClients in interface ClientService
Returns:
all connected clients to this member

addClientListener

public String addClientListener(ClientListener clientListener)
Description copied from interface: ClientService
Adds a ClientListener. When a ClientListener is added more than once, it will receive duplicate events.

Specified by:
addClientListener in interface ClientService
Parameters:
clientListener - the ClientListener to add
Returns:
registration id. This id can be used to remove the listener using the ClientService.removeClientListener(String) method.

removeClientListener

public boolean removeClientListener(String registrationId)
Description copied from interface: ClientService
Removes a ClientListener. Can safely be called with a non existing id, or when the ClientListener already is removed.

Specified by:
removeClientListener in interface ClientService
Parameters:
registrationId - Id of the ClientListener registration.
Returns:
true if registration is removed, false otherwise


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.