Class CursorServiceGrpc.CursorServiceFutureStub (1.13.8)

public static final class CursorServiceGrpc.CursorServiceFutureStub extends AbstractFutureStub<CursorServiceGrpc.CursorServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service CursorService.

The service that a subscriber client application uses to manage committed cursors while receiving messsages. A cursor represents a subscriber's progress within a topic partition for a given subscription.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > CursorServiceGrpc.CursorServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected CursorServiceGrpc.CursorServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
CursorServiceGrpc.CursorServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

commitCursor(CommitCursorRequest request)

public ListenableFuture<CommitCursorResponse> commitCursor(CommitCursorRequest request)

Updates the committed cursor.

Parameter
Name Description
request CommitCursorRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<CommitCursorResponse>

listPartitionCursors(ListPartitionCursorsRequest request)

public ListenableFuture<ListPartitionCursorsResponse> listPartitionCursors(ListPartitionCursorsRequest request)

Returns all committed cursor information for a subscription.

Parameter
Name Description
request ListPartitionCursorsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListPartitionCursorsResponse>