Class TopicStatsServiceGrpc.TopicStatsServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<TopicStatsServiceGrpc.TopicStatsServiceBlockingStub>
-
- com.google.cloud.pubsublite.proto.TopicStatsServiceGrpc.TopicStatsServiceBlockingStub
-
- Enclosing class:
- TopicStatsServiceGrpc
public static final class TopicStatsServiceGrpc.TopicStatsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<TopicStatsServiceGrpc.TopicStatsServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service TopicStatsService.This service allows users to get stats about messages in their topic.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TopicStatsServiceGrpc.TopicStatsServiceBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
ComputeHeadCursorResponse
computeHeadCursor(ComputeHeadCursorRequest request)
Compute the head cursor for the partition.ComputeMessageStatsResponse
computeMessageStats(ComputeMessageStatsRequest request)
Compute statistics about a range of messages in a given topic and partition.ComputeTimeCursorResponse
computeTimeCursor(ComputeTimeCursorRequest request)
Compute the corresponding cursor for a publish or event time in a topic partition.
-
-
-
Method Detail
-
build
protected TopicStatsServiceGrpc.TopicStatsServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<TopicStatsServiceGrpc.TopicStatsServiceBlockingStub>
-
computeMessageStats
public ComputeMessageStatsResponse computeMessageStats(ComputeMessageStatsRequest request)
Compute statistics about a range of messages in a given topic and partition.
-
computeHeadCursor
public ComputeHeadCursorResponse computeHeadCursor(ComputeHeadCursorRequest request)
Compute the head cursor for the partition. The head cursor's offset is guaranteed to be less than or equal to all messages which have not yet been acknowledged as published, and greater than the offset of any message whose publish has already been acknowledged. It is zero if there have never been messages in the partition.
-
computeTimeCursor
public ComputeTimeCursorResponse computeTimeCursor(ComputeTimeCursorRequest request)
Compute the corresponding cursor for a publish or event time in a topic partition.
-
-