Class CursorServiceGrpc.CursorServiceFutureStub (1.5.5)

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

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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestCommitCursorRequest
Returns
TypeDescription
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
NameDescription
requestListPartitionCursorsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ListPartitionCursorsResponse>