Class TopicStatsServiceGrpc.TopicStatsServiceFutureStub (1.11.2)

public static final class TopicStatsServiceGrpc.TopicStatsServiceFutureStub extends AbstractFutureStub<TopicStatsServiceGrpc.TopicStatsServiceFutureStub>

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

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > TopicStatsServiceGrpc.TopicStatsServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

computeHeadCursor(ComputeHeadCursorRequest request)

public ListenableFuture<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
com.google.common.util.concurrent.ListenableFuture<ComputeHeadCursorResponse>

computeMessageStats(ComputeMessageStatsRequest request)

public ListenableFuture<ComputeMessageStatsResponse> computeMessageStats(ComputeMessageStatsRequest request)

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

Parameter
NameDescription
requestComputeMessageStatsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ComputeMessageStatsResponse>

computeTimeCursor(ComputeTimeCursorRequest request)

public ListenableFuture<ComputeTimeCursorResponse> computeTimeCursor(ComputeTimeCursorRequest request)

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

Parameter
NameDescription
requestComputeTimeCursorRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ComputeTimeCursorResponse>