| Modifier and Type | Method and Description |
|---|---|
abstract TopicPath |
TopicPath.Builder.build()
Build a new TopicPath.
|
static TopicPath |
TopicPath.parse(String path) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Void> |
AdminClient.deleteTopic(TopicPath path)
Delete the topic with id
id if it exists. |
com.google.api.core.ApiFuture<Topic> |
AdminClient.getTopic(TopicPath path)
Get the topic with id
id if it exists. |
com.google.api.core.ApiFuture<Long> |
AdminClient.getTopicPartitionCount(TopicPath path)
Get the partitioning info for the topic with id
id if it exists. |
com.google.api.core.ApiFuture<List<SubscriptionPath>> |
AdminClient.listTopicSubscriptions(TopicPath path)
Get the list of subscriptions for the topic with id
id if it exists. |
static int |
PartitionLookupUtils.numPartitions(TopicPath topic)
Look up the number of partitions in a topic.
|
static int |
PartitionLookupUtils.numPartitions(TopicPath topic,
AdminClient client)
Look up the number of partitions in a topic using the provided AdminClient.
|
| Modifier and Type | Method and Description |
|---|---|
abstract PublisherSettings.Builder |
PublisherSettings.Builder.setTopicPath(TopicPath path)
The topic path to publish to.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Cursor> |
TopicStatsClientImpl.computeHeadCursor(TopicPath path,
Partition partition) |
com.google.api.core.ApiFuture<Cursor> |
TopicStatsClient.computeHeadCursor(TopicPath path,
Partition partition)
Compute the head cursor for the partition.
|
com.google.api.core.ApiFuture<ComputeMessageStatsResponse> |
TopicStatsClientImpl.computeMessageStats(TopicPath path,
Partition partition,
Offset start,
Offset end) |
com.google.api.core.ApiFuture<ComputeMessageStatsResponse> |
TopicStatsClient.computeMessageStats(TopicPath path,
Partition partition,
Offset start,
Offset end)
Compute statistics about the messages between two cursors in a topic partition.
|
com.google.api.core.ApiFuture<Void> |
AdminClientImpl.deleteTopic(TopicPath path) |
com.google.api.core.ApiFuture<Topic> |
AdminClientImpl.getTopic(TopicPath path) |
com.google.api.core.ApiFuture<Long> |
AdminClientImpl.getTopicPartitionCount(TopicPath path) |
com.google.api.core.ApiFuture<List<SubscriptionPath>> |
AdminClientImpl.listTopicSubscriptions(TopicPath path) |
| Modifier and Type | Method and Description |
|---|---|
static TopicPath |
UnitTestExamples.exampleTopicPath() |
| Modifier and Type | Method and Description |
|---|---|
static RoutingMetadata |
RoutingMetadata.of(TopicPath topic,
Partition partition) |
abstract SinglePartitionPublisherBuilder.Builder |
SinglePartitionPublisherBuilder.Builder.setTopic(TopicPath topic) |
abstract RoutingPublisherBuilder.Builder |
RoutingPublisherBuilder.Builder.setTopic(TopicPath path) |
abstract PublisherBuilder.Builder |
PublisherBuilder.Builder.setTopic(TopicPath path) |
abstract PartitionCountWatchingPublisherSettings.Builder |
PartitionCountWatchingPublisherSettings.Builder.setTopic(TopicPath path) |
| Constructor and Description |
|---|
Factory(TopicPath topicPath,
AdminClient adminClient,
Duration period) |
Copyright © 2021 Google LLC. All rights reserved.