public final class PartitionLookupUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
numPartitions(SubscriptionPath subscription)
Look up the number of partitions in the topic associated with a subscription.
|
static int |
numPartitions(SubscriptionPath subscription,
AdminClient client)
Look up the number of partitions in the topic associated with a subscription using the provided
AdminClient.
|
static int |
numPartitions(TopicPath topic)
Look up the number of partitions in a topic.
|
static int |
numPartitions(TopicPath topic,
AdminClient client)
Look up the number of partitions in a topic using the provided AdminClient.
|
public static int numPartitions(TopicPath topic) throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionpublic static int numPartitions(TopicPath topic, AdminClient client) throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionpublic static int numPartitions(SubscriptionPath subscription) throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionpublic static int numPartitions(SubscriptionPath subscription, AdminClient client) throws com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionCopyright © 2021 Google LLC. All rights reserved.