Class TopicStatsServiceGrpc.TopicStatsServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<TopicStatsServiceGrpc.TopicStatsServiceBlockingV2Stub>
com.google.cloud.pubsublite.proto.TopicStatsServiceGrpc.TopicStatsServiceBlockingV2Stub
- Enclosing class:
- TopicStatsServiceGrpc
public static final class TopicStatsServiceGrpc.TopicStatsServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<TopicStatsServiceGrpc.TopicStatsServiceBlockingV2Stub>
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Compute the head cursor for the partition.Compute statistics about a range of messages in a given topic and partition.Compute the corresponding cursor for a publish or event time in a topic partition.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected TopicStatsServiceGrpc.TopicStatsServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<TopicStatsServiceGrpc.TopicStatsServiceBlockingV2Stub>
-
computeMessageStats
public ComputeMessageStatsResponse computeMessageStats(ComputeMessageStatsRequest request) throws io.grpc.StatusException Compute statistics about a range of messages in a given topic and partition.
- Throws:
io.grpc.StatusException
-
computeHeadCursor
public ComputeHeadCursorResponse computeHeadCursor(ComputeHeadCursorRequest request) throws io.grpc.StatusException 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.
- Throws:
io.grpc.StatusException
-
computeTimeCursor
public ComputeTimeCursorResponse computeTimeCursor(ComputeTimeCursorRequest request) throws io.grpc.StatusException Compute the corresponding cursor for a publish or event time in a topic partition.
- Throws:
io.grpc.StatusException
-