Class TopicStatsServiceGrpc.TopicStatsServiceStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<TopicStatsServiceGrpc.TopicStatsServiceStub>
com.google.cloud.pubsublite.proto.TopicStatsServiceGrpc.TopicStatsServiceStub
- Enclosing class:
- TopicStatsServiceGrpc
public static final class TopicStatsServiceGrpc.TopicStatsServiceStub
extends io.grpc.stub.AbstractAsyncStub<TopicStatsServiceGrpc.TopicStatsServiceStub>
A stub to allow clients to do asynchronous 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) voidcomputeHeadCursor(ComputeHeadCursorRequest request, io.grpc.stub.StreamObserver<ComputeHeadCursorResponse> responseObserver) Compute the head cursor for the partition.voidcomputeMessageStats(ComputeMessageStatsRequest request, io.grpc.stub.StreamObserver<ComputeMessageStatsResponse> responseObserver) Compute statistics about a range of messages in a given topic and partition.voidcomputeTimeCursor(ComputeTimeCursorRequest request, io.grpc.stub.StreamObserver<ComputeTimeCursorResponse> responseObserver) Compute the corresponding cursor for a publish or event time in a topic partition.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
build
protected TopicStatsServiceGrpc.TopicStatsServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<TopicStatsServiceGrpc.TopicStatsServiceStub>
-
computeMessageStats
public void computeMessageStats(ComputeMessageStatsRequest request, io.grpc.stub.StreamObserver<ComputeMessageStatsResponse> responseObserver) Compute statistics about a range of messages in a given topic and partition.
-
computeHeadCursor
public void computeHeadCursor(ComputeHeadCursorRequest request, io.grpc.stub.StreamObserver<ComputeHeadCursorResponse> responseObserver) 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 void computeTimeCursor(ComputeTimeCursorRequest request, io.grpc.stub.StreamObserver<ComputeTimeCursorResponse> responseObserver) Compute the corresponding cursor for a publish or event time in a topic partition.
-