public interface TopicStatsClient extends ApiBackgroundResource
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Cursor> |
computeHeadCursor(TopicPath path,
Partition partition)
Compute the head cursor for the partition.
|
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 com.google.api.gax.rpc.ApiException
com.google.api.gax.rpc.ApiExceptionCloudRegion 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 cursorApiException or the
ComputeMessageStatistics on success.com.google.api.core.ApiFuture<Cursor> computeHeadCursor(TopicPath path, Partition partition)
path - The topic to compute head cursor onpartition - The partition to compute head cursor forApiException or the head cursor on
success.Copyright © 2021 Google LLC. All rights reserved.