Search in sources :

Example 1 with ClientSmartListenerService

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

the class HazelcastClientInstanceImpl method initListenerService.

private ClientListenerServiceImpl initListenerService() {
    int eventQueueCapacity = properties.getInteger(ClientProperty.EVENT_QUEUE_CAPACITY);
    int eventThreadCount = properties.getInteger(ClientProperty.EVENT_THREAD_COUNT);
    final ClientNetworkConfig networkConfig = config.getNetworkConfig();
    if (networkConfig.isSmartRouting()) {
        return new ClientSmartListenerService(this, eventThreadCount, eventQueueCapacity);
    } else {
        return new ClientNonSmartListenerService(this, eventThreadCount, eventQueueCapacity);
    }
}
Also used : ClientSmartListenerService(com.hazelcast.client.spi.impl.listener.ClientSmartListenerService) ClientNonSmartListenerService(com.hazelcast.client.spi.impl.listener.ClientNonSmartListenerService) ClientNetworkConfig(com.hazelcast.client.config.ClientNetworkConfig)

Aggregations

ClientNetworkConfig (com.hazelcast.client.config.ClientNetworkConfig)1 ClientNonSmartListenerService (com.hazelcast.client.spi.impl.listener.ClientNonSmartListenerService)1 ClientSmartListenerService (com.hazelcast.client.spi.impl.listener.ClientSmartListenerService)1