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