Class Netty4Transport

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, LifecycleComponent, Releasable, Transport

    public class Netty4Transport
    extends TcpTransport
    There are 4 types of connections per node, low/med/high/ping. Low if for batch oriented APIs (like recovery or batch) with high payload that will cause regular request. (like search or single index) to take longer. Med is for the typical search / single doc index. And High for things like cluster state. Ping is reserved for sending out ping requests to other nodes.
    • Field Detail

      • WORKER_COUNT

        public static final Setting<java.lang.Integer> WORKER_COUNT
      • NETTY_RECEIVE_PREDICTOR_SIZE

        public static final Setting<ByteSizeValue> NETTY_RECEIVE_PREDICTOR_SIZE
      • NETTY_RECEIVE_PREDICTOR_MIN

        public static final Setting<ByteSizeValue> NETTY_RECEIVE_PREDICTOR_MIN
      • NETTY_RECEIVE_PREDICTOR_MAX

        public static final Setting<ByteSizeValue> NETTY_RECEIVE_PREDICTOR_MAX
      • NETTY_BOSS_COUNT

        public static final Setting<java.lang.Integer> NETTY_BOSS_COUNT
    • Method Detail

      • getServerChannelInitializer

        protected io.netty.channel.ChannelHandler getServerChannelInitializer​(java.lang.String name)
      • getClientChannelInitializer

        protected io.netty.channel.ChannelHandler getClientChannelInitializer​(DiscoveryNode node)
      • exceptionCaught

        protected final void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                             java.lang.Throwable cause)
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception