public class TopicStatsClientImpl extends ApiResourceAggregation implements TopicStatsClient
| Constructor and Description |
|---|
TopicStatsClientImpl(CloudRegion region,
TopicStatsServiceGrpc.TopicStatsServiceBlockingStub stub,
com.google.api.gax.retrying.RetrySettings retrySettings) |
| 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.
|
CloudRegion |
region()
The Google Cloud region this client operates on.
|
awaitTermination, close, isShutdown, isTerminated, shutdown, shutdownNowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateclosepublic TopicStatsClientImpl(CloudRegion region, TopicStatsServiceGrpc.TopicStatsServiceBlockingStub stub, com.google.api.gax.retrying.RetrySettings retrySettings)
public CloudRegion region()
TopicStatsClientregion in interface TopicStatsClientpublic com.google.api.core.ApiFuture<ComputeMessageStatsResponse> computeMessageStats(TopicPath path, Partition partition, Offset start, Offset end)
TopicStatsClientcomputeMessageStats in interface TopicStatsClientpath - 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.