Class TopicManagerRepository
java.lang.Object
com.linkedin.venice.pubsub.manager.TopicManagerRepository
- All Implemented Interfaces:
Closeable
,AutoCloseable
A repository of
TopicManager
instances, each associated with a specific PubSub region and cluster.
This repository maintains one TopicManager
for each unique PubSub bootstrap server address.
While not mandatory, it is expected that each Venice component will have one and only one instance of this class.-
Constructor Summary
ConstructorDescriptionTopicManagerRepository
(TopicManagerContext topicManagerContext, String localPubSubAddress) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
By default, return TopicManager for local PubSub cluster.getTopicManager
(String pubSubAddress) void
invalidateTopicManagerCaches
(PubSubTopic pubSubTopic) Invalidates the cache for the given PubSub topic across all TopicManagers in the repository.
-
Constructor Details
-
TopicManagerRepository
-
-
Method Details
-
getLocalTopicManager
By default, return TopicManager for local PubSub cluster. -
getTopicManager
-
invalidateTopicManagerCaches
Invalidates the cache for the given PubSub topic across all TopicManagers in the repository.- Parameters:
pubSubTopic
- the PubSub topic to invalidate
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-