Class KafkaStream

  • All Implemented Interfaces:
    Serializable

    @Experimental
    public class KafkaStream
    extends Object
    implements Serializable
    Kafka stream represents multiple topics over multiple Kafka clusters and this class encapsulates all the necessary information to initiate Kafka consumers to read a stream.
    See Also:
    Serialized Form
    • Constructor Detail

      • KafkaStream

        public KafkaStream​(String streamId,
                           Map<String,​ClusterMetadata> clusterMetadataMap)
        Construct a KafkaStream by passing Kafka information in order to connect to the stream.
        Parameters:
        streamId - the stream id.
        clusterMetadataMap - the map of clusters to ClusterMetadata to connect to the stream.
    • Method Detail

      • getStreamId

        public String getStreamId()
        Get the stream id.
        Returns:
        the stream id.
      • getClusterMetadataMap

        public Map<String,​ClusterMetadata> getClusterMetadataMap()
        Get the metadata to connect to the various cluster(s).
        Returns:
        the cluster metadata map.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object