public interface TopicStatsClient extends ApiBackgroundResource
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<ComputeMessageStatsResponse> |
computeMessageStats(TopicPath path,
Partition partition,
Offset start,
Offset end)
Compute statistics about the messages between two cursors in a topic partition.
|
static TopicStatsClient |
create(TopicStatsClientSettings settings) |
CloudRegion |
region()
The Google Cloud region this client operates on.
|
closestatic TopicStatsClient create(TopicStatsClientSettings settings) throws io.grpc.StatusException
io.grpc.StatusExceptionCloudRegion region()
com.google.api.core.ApiFuture<ComputeMessageStatsResponse> computeMessageStats(TopicPath path, Partition partition, Offset start, Offset end)
path - The topic to compute statistics onpartition - The partition to compute statistics forstart - The start cursorend - The end cursorStatusException or the
ComputeMessageStatistics on success.Copyright © 2020 Google LLC. All rights reserved.