Class NettyNioEchoHandler

java.lang.Object
org.apache.kafka.common.network.netty.AbstractDirectSendTransport
org.apache.kafka.common.network.netty.authenticator.NettyNioEchoHandler
All Implemented Interfaces:
org.apache.kafka.common.network.netty.DirectSendTransport, org.apache.kafka.common.network.netty.NettyStream.StreamHandler

public final class NettyNioEchoHandler extends org.apache.kafka.common.network.netty.AbstractDirectSendTransport implements org.apache.kafka.common.network.netty.NettyStream.StreamHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.kafka.common.network.netty.DirectSendTransport

    org.apache.kafka.common.network.netty.DirectSendTransport.DirectSend
  • Constructor Summary

    Constructors
    Constructor
    Description
    NettyNioEchoHandler(org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.utils.internals.LogContext logContext, Map<String,Object> configs, org.apache.kafka.common.security.auth.SecurityProtocol securityProtocol, org.apache.kafka.common.network.ListenerName listenerName, org.apache.kafka.common.network.netty.NettyStream nettyStream, io.netty.handler.codec.http2.Http2Headers headers, org.apache.kafka.common.utils.Time time, int maxReceiveSize, io.confluent.kafka.multitenant.InetAddressToTenantContext inetAddressToTenantContext, org.apache.kafka.server.interceptor.BrokerInterceptor brokerInterceptor, Optional<org.apache.kafka.server.audit.AuditLogProvider> auditLogProvider, int failedAuthenticationDelayMs, org.apache.kafka.common.network.ChannelBuilder channelBuilder, org.apache.kafka.common.network.Selector.SelectorMetrics selectorMetrics)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
    handleData(io.netty.buffer.ByteBuf data)
     
    void
     
    void
     

    Methods inherited from class org.apache.kafka.common.network.netty.AbstractDirectSendTransport

    send, sendWithDelay

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.kafka.common.network.netty.NettyStream.StreamHandler

    canHandleUserEvent, handleHeaders, handleUserEvent
  • Constructor Details

    • NettyNioEchoHandler

      public NettyNioEchoHandler(org.apache.kafka.common.metrics.Metrics metrics, org.apache.kafka.common.utils.internals.LogContext logContext, Map<String,Object> configs, org.apache.kafka.common.security.auth.SecurityProtocol securityProtocol, org.apache.kafka.common.network.ListenerName listenerName, org.apache.kafka.common.network.netty.NettyStream nettyStream, io.netty.handler.codec.http2.Http2Headers headers, org.apache.kafka.common.utils.Time time, int maxReceiveSize, io.confluent.kafka.multitenant.InetAddressToTenantContext inetAddressToTenantContext, org.apache.kafka.server.interceptor.BrokerInterceptor brokerInterceptor, Optional<org.apache.kafka.server.audit.AuditLogProvider> auditLogProvider, int failedAuthenticationDelayMs, org.apache.kafka.common.network.ChannelBuilder channelBuilder, org.apache.kafka.common.network.Selector.SelectorMetrics selectorMetrics)
  • Method Details

    • handleData

      public void handleData(io.netty.buffer.ByteBuf data)
      Specified by:
      handleData in interface org.apache.kafka.common.network.netty.NettyStream.StreamHandler
    • handleReadyForSend

      public void handleReadyForSend()
      Specified by:
      handleReadyForSend in interface org.apache.kafka.common.network.netty.NettyStream.StreamHandler
    • handleException

      public void handleException(Throwable t)
      Specified by:
      handleException in interface org.apache.kafka.common.network.netty.NettyStream.StreamHandler
    • handleClose

      public void handleClose()
      Specified by:
      handleClose in interface org.apache.kafka.common.network.netty.NettyStream.StreamHandler
    • channel

      public NioEchoChannel channel()