@InterfaceStability.Evolving public class StreamsMetadata extends java.lang.Object
KafkaStreams
application.
It contains the user supplied HostInfo
that can be used by developers to build
APIs and services to connect to other instances, the Set of state stores available on
the instance and the Set of TopicPartition
s available on the instance.
NOTE: This is a point in time view. It may change when rebalances happen.Modifier and Type | Field and Description |
---|---|
static StreamsMetadata |
NOT_AVAILABLE
Sentinel to indicate that the StreamsMetadata is currently unavailable.
|
Constructor and Description |
---|
StreamsMetadata(HostInfo hostInfo,
java.util.Set<java.lang.String> stateStoreNames,
java.util.Set<TopicPartition> topicPartitions) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
host() |
HostInfo |
hostInfo() |
int |
port() |
java.util.Set<java.lang.String> |
stateStoreNames() |
java.util.Set<TopicPartition> |
topicPartitions() |
java.lang.String |
toString() |
public static final StreamsMetadata NOT_AVAILABLE
public StreamsMetadata(HostInfo hostInfo, java.util.Set<java.lang.String> stateStoreNames, java.util.Set<TopicPartition> topicPartitions)
public HostInfo hostInfo()
public java.util.Set<java.lang.String> stateStoreNames()
public java.util.Set<TopicPartition> topicPartitions()
public java.lang.String host()
public int port()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object