Class DirectProxyHandler.ProxyBackendHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.apache.pulsar.common.protocol.PulsarDecoder
org.apache.pulsar.proxy.server.DirectProxyHandler.ProxyBackendHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler
Enclosing class:
DirectProxyHandler

public class DirectProxyHandler.ProxyBackendHandler extends PulsarDecoder
  • Field Details

    • ctx

      protected io.netty.channel.ChannelHandlerContext ctx
  • Constructor Details

    • ProxyBackendHandler

      public ProxyBackendHandler(ProxyConfiguration config, int protocolVersion, String remoteHostName)
  • Method Details

    • channelActive

      public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelActive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelActive in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • channelWritabilityChanged

      public void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelWritabilityChanged in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelWritabilityChanged in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • channelRead

      public void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
      Specified by:
      channelRead in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelRead in class PulsarDecoder
      Throws:
      Exception
    • handleAuthChallenge

      protected void handleAuthChallenge(CommandAuthChallenge authChallenge)
      Overrides:
      handleAuthChallenge in class PulsarDecoder
    • messageReceived

      protected void messageReceived()
      Specified by:
      messageReceived in class PulsarDecoder
    • handleConnected

      protected void handleConnected(CommandConnected connected)
      Overrides:
      handleConnected in class PulsarDecoder
    • channelInactive

      public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      channelInactive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelInactive in class io.netty.channel.ChannelInboundHandlerAdapter
    • exceptionCaught

      public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelHandler
      Specified by:
      exceptionCaught in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter