Class TopicStatsServiceGrpc.TopicStatsServiceFutureStub (1.14.8)

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

A stub to allow clients to do ListenableFuture-style 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.AbstractFutureStub > TopicStatsServiceGrpc.TopicStatsServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected TopicStatsServiceGrpc.TopicStatsServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
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
Name Description
request ComputeHeadCursorRequest
Returns
Type Description
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
Name Description
request ComputeMessageStatsRequest
Returns
Type Description
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
Name Description
request ComputeTimeCursorRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ComputeTimeCursorResponse>