Class TopicStatsServiceGrpc.TopicStatsServiceBlockingStub (1.10.0)

public static final class TopicStatsServiceGrpc.TopicStatsServiceBlockingStub extends AbstractBlockingStub<TopicStatsServiceGrpc.TopicStatsServiceBlockingStub>

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

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > TopicStatsServiceGrpc.TopicStatsServiceBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected TopicStatsServiceGrpc.TopicStatsServiceBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
TopicStatsServiceGrpc.TopicStatsServiceBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

computeHeadCursor(ComputeHeadCursorRequest request)

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.

Parameter
NameDescription
requestComputeHeadCursorRequest
Returns
TypeDescription
ComputeHeadCursorResponse

computeMessageStats(ComputeMessageStatsRequest request)

public ComputeMessageStatsResponse computeMessageStats(ComputeMessageStatsRequest request)

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

Parameter
NameDescription
requestComputeMessageStatsRequest
Returns
TypeDescription
ComputeMessageStatsResponse

computeTimeCursor(ComputeTimeCursorRequest request)

public ComputeTimeCursorResponse computeTimeCursor(ComputeTimeCursorRequest request)

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

Parameter
NameDescription
requestComputeTimeCursorRequest
Returns
TypeDescription
ComputeTimeCursorResponse