Record Class StreamsGroupTopologyDescription
java.lang.Object
java.lang.Record
org.apache.kafka.coordinator.group.api.streams.StreamsGroupTopologyDescription
@Public
@Evolving
public record StreamsGroupTopologyDescription(Collection<StreamsGroupTopologyDescription.Subtopology> subtopologies, Collection<StreamsGroupTopologyDescription.GlobalStore> globalStores)
extends Record
Broker-side description of a Kafka Streams topology, as pushed by clients via
StreamsGroupTopologyDescriptionUpdate and consumed by
StreamsGroupTopologyDescriptionPlugin implementations.
This type mirrors org.apache.kafka.streams.TopologyDescription in shape
but lives in group-coordinator-api so plugin implementations do not need
to depend on kafka-streams. The wire schema only carries the successor
relation; plugins that need both directions reconstruct predecessors in a single
pass over the nodes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic interfaceA processing node in the topology.static final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionStreamsGroupTopologyDescription(Collection<StreamsGroupTopologyDescription.Subtopology> subtopologies, Collection<StreamsGroupTopologyDescription.GlobalStore> globalStores) Creates an instance of aStreamsGroupTopologyDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theglobalStoresrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesubtopologiesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamsGroupTopologyDescription
public StreamsGroupTopologyDescription(Collection<StreamsGroupTopologyDescription.Subtopology> subtopologies, Collection<StreamsGroupTopologyDescription.GlobalStore> globalStores) Creates an instance of aStreamsGroupTopologyDescriptionrecord class.- Parameters:
subtopologies- the value for thesubtopologiesrecord componentglobalStores- the value for theglobalStoresrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
subtopologies
Returns the value of thesubtopologiesrecord component.- Returns:
- the value of the
subtopologiesrecord component
-
globalStores
Returns the value of theglobalStoresrecord component.- Returns:
- the value of the
globalStoresrecord component
-