use of com.hazelcast.internal.networking.ChannelErrorHandler in project hazelcast by hazelcast.
the class DefaultNodeContext method createNetworking.
private Networking createNetworking(Node node) {
LoggingServiceImpl loggingService = node.loggingService;
ILogger logger = loggingService.getLogger(TcpServerConnectionChannelErrorHandler.class);
ChannelErrorHandler errorHandler = new TcpServerConnectionChannelErrorHandler(logger);
HazelcastProperties props = node.getProperties();
return new NioNetworking(new NioNetworking.Context().loggingService(loggingService).metricsRegistry(node.nodeEngine.getMetricsRegistry()).threadNamePrefix(node.hazelcastInstance.getName()).errorHandler(errorHandler).inputThreadCount(props.getInteger(IO_INPUT_THREAD_COUNT)).inputThreadAffinity(newSystemThreadAffinity("hazelcast.io.input.thread.affinity")).outputThreadCount(props.getInteger(IO_OUTPUT_THREAD_COUNT)).outputThreadAffinity(newSystemThreadAffinity("hazelcast.io.output.thread.affinity")).balancerIntervalSeconds(props.getInteger(IO_BALANCER_INTERVAL_SECONDS)).writeThroughEnabled(props.getBoolean(IO_WRITE_THROUGH_ENABLED)).concurrencyDetection(node.nodeEngine.getConcurrencyDetection()));
}
Aggregations