Class SharePartitionCache
java.lang.Object
kafka.server.share.SharePartitionCache
The SharePartitionCache is used to cache the SharePartition objects. The cache is thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.kafka.server.share.SharePartitionKey> Returns the set of all share partition keys in the cache.computeIfAbsent(org.apache.kafka.server.share.SharePartitionKey partitionKey, Function<org.apache.kafka.server.share.SharePartitionKey, SharePartition> mappingFunction) Computes the value for the given key if it is not already present in the cache.get(org.apache.kafka.server.share.SharePartitionKey partitionKey) Returns the share partition for the given key.remove(org.apache.kafka.server.share.SharePartitionKey partitionKey) Removes the share partition from the cache.Set<org.apache.kafka.common.TopicIdPartition> topicIdPartitionsForGroup(String groupId) Returns the set of topic-partitions for the given group id.
-
Method Details
-
topicIdPartitionsForGroup