Java 类com.hazelcast.core.ClientListener 实例源码

项目:hazelcast-archive    文件:ClientServiceImpl.java   
private void doFireClientEvent(final Client client, final boolean connected) {
    if (client == null) throw new IllegalArgumentException("Client is null.");
    for (final ClientListener clientListener : listeners) {
        concurrentMapManager.node.executorManager.executeNow(new Runnable() {
            public void run() {
                if (connected) {
                    clientListener.clientConnected(client);
                } else {
                    clientListener.clientDisconnected(client);
                }
            }
        });
    }
}
项目:health-and-care-developer-network    文件:ClientServiceImpl.java   
private void doFireClientEvent(final Client client, final boolean connected) {
    if (client == null) throw new IllegalArgumentException("Client is null.");
    for (final ClientListener clientListener : listeners) {
        concurrentMapManager.node.executorManager.executeNow(new Runnable() {
            public void run() {
                if (connected) {
                    clientListener.clientConnected(client);
                } else {
                    clientListener.clientDisconnected(client);
                }
            }
        });
    }
}
项目:hazelcast-archive    文件:ClientServiceImpl.java   
public void addClientListener(ClientListener clientListener) {
    listeners.add(clientListener);
}
项目:hazelcast-archive    文件:ClientServiceImpl.java   
public void removeClientListener(ClientListener clientListener) {
    listeners.remove(clientListener);
}
项目:health-and-care-developer-network    文件:ClientServiceImpl.java   
public void addClientListener(ClientListener clientListener) {
    listeners.add(clientListener);
}
项目:health-and-care-developer-network    文件:ClientServiceImpl.java   
public void removeClientListener(ClientListener clientListener) {
    listeners.remove(clientListener);
}