use of org.neo4j.causalclustering.messaging.marshalling.RaftMessageEncoder in project neo4j by neo4j.
the class RaftChannelInitializer method initChannel.
@Override
protected void initChannel(SocketChannel ch) throws Exception {
ChannelPipeline pipeline = ch.pipeline();
pipeline.addLast("frameEncoder", new LengthFieldPrepender(4));
pipeline.addLast(new VersionPrepender());
pipeline.addLast("raftMessageEncoder", new RaftMessageEncoder(marshal));
pipeline.addLast(new ExceptionLoggingHandler(log));
pipeline.addLast(new ExceptionMonitoringHandler(monitors.newMonitor(ExceptionMonitoringHandler.Monitor.class, SenderService.class)));
pipeline.addLast(new ExceptionSwallowingHandler());
}
Aggregations