use of com.hazelcast.internal.networking.WriteHandler in project hazelcast by hazelcast.
the class SocketWriterInitializerImpl method initHandler.
private void initHandler(TcpIpConnection connection, SocketWriter writer, String protocol) {
WriteHandler handler;
if (CLUSTER.equals(protocol)) {
IOService ioService = connection.getConnectionManager().getIoService();
handler = ioService.createWriteHandler(connection);
} else if (CLIENT_BINARY_NEW.equals(protocol)) {
handler = new ClientWriteHandler();
} else {
handler = new TextWriteHandler(connection);
}
writer.initWriteHandler(handler);
}
Aggregations