Class ClusterMetadata

    • Constructor Detail

      • 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.
      • ClusterMetadata

        public ClusterMetadata​(Set<String> topics,
                               Properties properties,
                               @Nullable
                               OffsetsInitializer startingOffsetsInitializer,
                               @Nullable
                               OffsetsInitializer stoppingOffsetsInitializer)
        Constructs the ClusterMetadata with the required properties and offsets.
        Parameters:
        topics - the topics belonging to a cluster.
        properties - the properties to access a cluster.
        startingOffsetsInitializer - the starting offsets initializer for the cluster.
        stoppingOffsetsInitializer - the stopping offsets initializer for the cluster.
    • Method Detail

      • getTopics

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

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

        @Nullable
        public OffsetsInitializer getStartingOffsetsInitializer()
        Get the starting offsets initializer for the cluster.
        Returns:
        the starting offsets initializer, or null to use the source default.
      • getStoppingOffsetsInitializer

        @Nullable
        public OffsetsInitializer getStoppingOffsetsInitializer()
        Get the stopping offsets initializer for the cluster.
        Returns:
        the stopping offsets initializer, or null to use the source default.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object