Class TopicPartitions
- java.lang.Object
-
- io.streamthoughts.azkarra.api.streams.TopicPartitions
-
- All Implemented Interfaces:
Comparable<TopicPartitions>
public class TopicPartitions extends Object implements Comparable<TopicPartitions>
This class represents topic-partitions assignment for a streams application.
-
-
Constructor Summary
Constructors Constructor Description TopicPartitions(String name, Set<Integer> partitions)
Creates a newTopicPartitions
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(TopicPartitions that)
boolean
equals(Object o)
int
hashCode()
String
name()
Set<Integer>
partitions()
-
-
-
Constructor Detail
-
TopicPartitions
public TopicPartitions(String name, Set<Integer> partitions)
Creates a newTopicPartitions
instance.- Parameters:
name
- the topic name.partitions
- the set of partitions.
-
-
Method Detail
-
name
public String name()
-
compareTo
public int compareTo(TopicPartitions that)
- Specified by:
compareTo
in interfaceComparable<TopicPartitions>
-
-