Search in sources :

Example 1 with ClientListenerServiceImpl

use of com.hazelcast.client.spi.impl.listener.ClientListenerServiceImpl in project hazelcast by hazelcast.

the class ListenerLeakTestSupport method getClientEventRegistrations.

protected Collection<ClientEventRegistration> getClientEventRegistrations(HazelcastInstance client, String id) {
    HazelcastClientInstanceImpl clientImpl = ClientTestUtil.getHazelcastClientInstanceImpl(client);
    ClientListenerServiceImpl listenerService = (ClientListenerServiceImpl) clientImpl.getListenerService();
    return listenerService.getActiveRegistrations(id);
}
Also used : ClientListenerServiceImpl(com.hazelcast.client.spi.impl.listener.ClientListenerServiceImpl) HazelcastClientInstanceImpl(com.hazelcast.client.impl.HazelcastClientInstanceImpl)

Example 2 with ClientListenerServiceImpl

use of com.hazelcast.client.spi.impl.listener.ClientListenerServiceImpl in project hazelcast by hazelcast.

the class ClientConnectionManagerImpl method handleClientMessage.

@Override
public void handleClientMessage(ClientMessage message, Connection connection) {
    ClientConnection conn = (ClientConnection) connection;
    ClientInvocationService invocationService = client.getInvocationService();
    conn.incrementPendingPacketCount();
    if (message.isFlagSet(ClientMessage.LISTENER_EVENT_FLAG)) {
        ClientListenerServiceImpl listenerService = (ClientListenerServiceImpl) client.getListenerService();
        listenerService.handleClientMessage(message, connection);
    } else {
        invocationService.handleClientMessage(message, connection);
    }
}
Also used : ClientListenerServiceImpl(com.hazelcast.client.spi.impl.listener.ClientListenerServiceImpl) ClientInvocationService(com.hazelcast.client.spi.ClientInvocationService)

Example 3 with ClientListenerServiceImpl

use of com.hazelcast.client.spi.impl.listener.ClientListenerServiceImpl in project hazelcast by hazelcast.

the class AbstractListenersOnReconnectTest method getClientEventRegistrations.

private Collection<ClientEventRegistration> getClientEventRegistrations(HazelcastInstance client, String id) {
    HazelcastClientInstanceImpl clientImpl = ClientTestUtil.getHazelcastClientInstanceImpl(client);
    ClientListenerServiceImpl listenerService = (ClientListenerServiceImpl) clientImpl.getListenerService();
    return listenerService.getActiveRegistrations(id);
}
Also used : ClientListenerServiceImpl(com.hazelcast.client.spi.impl.listener.ClientListenerServiceImpl) HazelcastClientInstanceImpl(com.hazelcast.client.impl.HazelcastClientInstanceImpl)

Aggregations

ClientListenerServiceImpl (com.hazelcast.client.spi.impl.listener.ClientListenerServiceImpl)3 HazelcastClientInstanceImpl (com.hazelcast.client.impl.HazelcastClientInstanceImpl)2 ClientInvocationService (com.hazelcast.client.spi.ClientInvocationService)1