Class TopicSwitchWrapper
- java.lang.Object
-
- com.linkedin.davinci.kafka.consumer.TopicSwitchWrapper
-
public class TopicSwitchWrapper extends java.lang.Object
This class precomputes the conversion from Avro'sCharSequence
to String, and also hangs on to the correct instance ofPubSubTopic
, so that the lookup need not be performed in many locations.
-
-
Constructor Summary
Constructors Constructor Description TopicSwitchWrapper(TopicSwitch topicSwitch, PubSubTopic newSourceTopic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubSubTopic
getNewSourceTopic()
java.util.Set<java.lang.String>
getSourceServers()
TopicSwitch
getTopicSwitch()
-
-
-
Constructor Detail
-
TopicSwitchWrapper
public TopicSwitchWrapper(TopicSwitch topicSwitch, PubSubTopic newSourceTopic)
-
-
Method Detail
-
getTopicSwitch
public TopicSwitch getTopicSwitch()
-
getNewSourceTopic
public PubSubTopic getNewSourceTopic()
-
getSourceServers
public java.util.Set<java.lang.String> getSourceServers()
-
-