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);
}
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);
}
}
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);
}
Aggregations