Class ClusterMetadata

java.lang.Object
org.apache.flink.connector.kafka.dynamic.metadata.ClusterMetadata
All Implemented Interfaces:
Serializable

@Experimental public class ClusterMetadata extends Object implements Serializable
ClusterMetadata provides readers information about a cluster on what topics to read and how to connect to a cluster.
See Also:
  • Constructor Details

    • ClusterMetadata

      public ClusterMetadata(Set<String> topics, Properties properties)
      Constructs the ClusterMetadata with the required properties.
      Parameters:
      topics - the topics belonging to a cluster.
      properties - the properties to access a cluster.
  • Method Details

    • getTopics

      public Set<String> getTopics()
      Get the topics.
      Returns:
      the topics.
    • getProperties

      public Properties getProperties()
      Get the properties.
      Returns:
      the properties.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object