Class TopicStatsServiceGrpc.TopicStatsServiceBlockingStub (1.14.8)

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

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.

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
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
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
Name Description
request ComputeHeadCursorRequest
Returns
Type Description
ComputeHeadCursorResponse

computeMessageStats(ComputeMessageStatsRequest request)

public ComputeMessageStatsResponse computeMessageStats(ComputeMessageStatsRequest request)

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

Parameter
Name Description
request ComputeMessageStatsRequest
Returns
Type Description
ComputeMessageStatsResponse

computeTimeCursor(ComputeTimeCursorRequest request)

public ComputeTimeCursorResponse computeTimeCursor(ComputeTimeCursorRequest request)

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

Parameter
Name Description
request ComputeTimeCursorRequest
Returns
Type Description
ComputeTimeCursorResponse