Class TopicStatsServiceGrpc.TopicStatsServiceImplBase (1.9.0)

public abstract static class TopicStatsServiceGrpc.TopicStatsServiceImplBase implements BindableService

This service allows users to get stats about messages in their topic.

Inheritance

java.lang.Object > TopicStatsServiceGrpc.TopicStatsServiceImplBase

Implements

io.grpc.BindableService

Constructors

TopicStatsServiceImplBase()

public TopicStatsServiceImplBase()

Methods

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

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
NameDescription
requestComputeHeadCursorRequest
responseObserverio.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
NameDescription
requestComputeMessageStatsRequest
responseObserverio.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
NameDescription
requestComputeTimeCursorRequest
responseObserverio.grpc.stub.StreamObserver<ComputeTimeCursorResponse>