Class TopicStatsServiceGrpc.TopicStatsServiceStub (1.15.0)

public static final class TopicStatsServiceGrpc.TopicStatsServiceStub extends 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.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > TopicStatsServiceGrpc.TopicStatsServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected TopicStatsServiceGrpc.TopicStatsServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
TopicStatsServiceGrpc.TopicStatsServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

computeHeadCursor(ComputeHeadCursorRequest request, StreamObserver<ComputeHeadCursorResponse> responseObserver)

public void computeHeadCursor(ComputeHeadCursorRequest request, 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.

Parameters
Name Description
request ComputeHeadCursorRequest
responseObserver io.grpc.stub.StreamObserver<ComputeHeadCursorResponse>

computeMessageStats(ComputeMessageStatsRequest request, StreamObserver<ComputeMessageStatsResponse> responseObserver)

public void computeMessageStats(ComputeMessageStatsRequest request, StreamObserver<ComputeMessageStatsResponse> responseObserver)

Compute statistics about a range of messages in a given topic and partition.

Parameters
Name Description
request ComputeMessageStatsRequest
responseObserver io.grpc.stub.StreamObserver<ComputeMessageStatsResponse>

computeTimeCursor(ComputeTimeCursorRequest request, StreamObserver<ComputeTimeCursorResponse> responseObserver)

public void computeTimeCursor(ComputeTimeCursorRequest request, StreamObserver<ComputeTimeCursorResponse> responseObserver)

Compute the corresponding cursor for a publish or event time in a topic partition.

Parameters
Name Description
request ComputeTimeCursorRequest
responseObserver io.grpc.stub.StreamObserver<ComputeTimeCursorResponse>