Package io.grpc.netty

Class InternalProtocolNegotiators.ProtocolNegotiationHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.grpc.netty.InternalProtocolNegotiators.ProtocolNegotiationHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler
Enclosing class:
InternalProtocolNegotiators

public static class InternalProtocolNegotiators.ProtocolNegotiationHandler extends io.netty.channel.ChannelDuplexHandler
  • Constructor Details

    • ProtocolNegotiationHandler

      protected ProtocolNegotiationHandler(io.netty.channel.ChannelHandler next, String negotiatorName, ChannelLogger negotiationLogger)
    • ProtocolNegotiationHandler

      protected ProtocolNegotiationHandler(io.netty.channel.ChannelHandler next, ChannelLogger negotiationLogger)
  • Method Details

    • handlerAdded

      public final void handlerAdded(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      handlerAdded in interface io.netty.channel.ChannelHandler
      Overrides:
      handlerAdded in class io.netty.channel.ChannelHandlerAdapter
      Throws:
      Exception
    • handlerAdded0

      @ForOverride protected void handlerAdded0(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Throws:
      Exception
    • userEventTriggered

      public final void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
      Specified by:
      userEventTriggered in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      userEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • userEventTriggered0

      protected void userEventTriggered0(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
      Throws:
      Exception
    • protocolNegotiationEventTriggered

      @ForOverride protected void protocolNegotiationEventTriggered(io.netty.channel.ChannelHandlerContext ctx)
    • getProtocolNegotiationEvent

      protected final ProtocolNegotiationEvent getProtocolNegotiationEvent()
    • replaceProtocolNegotiationEvent

      protected final void replaceProtocolNegotiationEvent(ProtocolNegotiationEvent pne)
    • fireProtocolNegotiationEvent

      protected final void fireProtocolNegotiationEvent(io.netty.channel.ChannelHandlerContext ctx)