Package com.linkedin.venice.pubsub
Class PubSubTopicPartitionImpl
- java.lang.Object
-
- com.linkedin.venice.pubsub.PubSubTopicPartitionImpl
-
- All Implemented Interfaces:
PubSubTopicPartition
public class PubSubTopicPartitionImpl extends java.lang.Object implements PubSubTopicPartition
-
-
Constructor Summary
Constructors Constructor Description PubSubTopicPartitionImpl(PubSubTopic topic, int partitionNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getPartitionNumber()
PubSubTopic
getPubSubTopic()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.linkedin.venice.pubsub.api.PubSubTopicPartition
getTopicName
-
-
-
-
Constructor Detail
-
PubSubTopicPartitionImpl
public PubSubTopicPartitionImpl(PubSubTopic topic, int partitionNumber)
-
-
Method Detail
-
getPubSubTopic
public PubSubTopic getPubSubTopic()
- Specified by:
getPubSubTopic
in interfacePubSubTopicPartition
- Returns:
- the topic associated with this topic-partition
-
getPartitionNumber
public int getPartitionNumber()
- Specified by:
getPartitionNumber
in interfacePubSubTopicPartition
- Returns:
- the partition number of this topic-partition
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-