Search in sources :

Example 1 with ClientInvocationService

use of com.hazelcast.client.spi.ClientInvocationService 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)

Aggregations

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