Class KafkaEchoChannel

java.lang.Object
org.apache.kafka.common.network.KafkaEchoChannel
All Implemented Interfaces:
NioEchoChannel

public class KafkaEchoChannel extends Object implements NioEchoChannel
A wrapper class for KafkaChannel that implements NioEchoChannel.
  • Constructor Summary

    Constructors
    Constructor
    Description
    KafkaEchoChannel(org.apache.kafka.common.network.KafkaChannel channel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.kafka.common.security.auth.AuthenticationContext
    Returns the authentication context for this channel.
    org.apache.kafka.common.network.KafkaChannel
    Returns the underlying channel object.
    boolean
     
    int
     
    id()
    Returns the unique identifier for this channel.
    org.apache.kafka.common.security.auth.KafkaPrincipal
    Returns the principal associated with this channel.
    org.apache.kafka.common.network.PublicCredential
    Returns the public credential associated with this channel.
    boolean
    Checks if the channel is ready for communication.

    Methods inherited from class Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KafkaEchoChannel

      public KafkaEchoChannel(org.apache.kafka.common.network.KafkaChannel channel)
  • Method Details

    • id

      public String id()
      Description copied from interface: NioEchoChannel
      Returns the unique identifier for this channel.
      Specified by:
      id in interface NioEchoChannel
      Returns:
      the channel ID
    • principal

      public org.apache.kafka.common.security.auth.KafkaPrincipal principal()
      Description copied from interface: NioEchoChannel
      Returns the principal associated with this channel.
      Specified by:
      principal in interface NioEchoChannel
      Returns:
      the KafkaPrincipal for this channel
    • ready

      public boolean ready()
      Description copied from interface: NioEchoChannel
      Checks if the channel is ready for communication.
      Specified by:
      ready in interface NioEchoChannel
      Returns:
      true if the channel is ready, false otherwise
    • authenticationContext

      public org.apache.kafka.common.security.auth.AuthenticationContext authenticationContext()
      Description copied from interface: NioEchoChannel
      Returns the authentication context for this channel.
      Specified by:
      authenticationContext in interface NioEchoChannel
      Returns:
      the AuthenticationContext associated with this channel
    • publicCredential

      public org.apache.kafka.common.network.PublicCredential publicCredential()
      Description copied from interface: NioEchoChannel
      Returns the public credential associated with this channel.
      Specified by:
      publicCredential in interface NioEchoChannel
      Returns:
      the PublicCredential for this channel
    • channel

      public org.apache.kafka.common.network.KafkaChannel channel()
      Description copied from interface: NioEchoChannel
      Returns the underlying channel object.
      Specified by:
      channel in interface NioEchoChannel
      Returns:
      the channel object, could be a KafkaChannel or any other implementation
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object