Class GrpcCursorServiceStub (1.13.7)

public class GrpcCursorServiceStub extends CursorServiceStub

gRPC stub implementation for the CursorService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > CursorServiceStub > GrpcCursorServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcCursorServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcCursorServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCursorServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcCursorServiceStub
Exceptions
Type Description
IOException

create(CursorServiceStubSettings settings)

public static final GrpcCursorServiceStub create(CursorServiceStubSettings settings)
Parameter
Name Description
settings CursorServiceStubSettings
Returns
Type Description
GrpcCursorServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcCursorServiceStub(CursorServiceStubSettings settings, ClientContext clientContext)

protected GrpcCursorServiceStub(CursorServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcCursorServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings CursorServiceStubSettings
clientContext ClientContext

GrpcCursorServiceStub(CursorServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCursorServiceStub(CursorServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcCursorServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings CursorServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

commitCursorCallable()

public UnaryCallable<CommitCursorRequest,CommitCursorResponse> commitCursorCallable()
Returns
Type Description
UnaryCallable<CommitCursorRequest,CommitCursorResponse>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listPartitionCursorsCallable()

public UnaryCallable<ListPartitionCursorsRequest,ListPartitionCursorsResponse> listPartitionCursorsCallable()
Returns
Type Description
UnaryCallable<ListPartitionCursorsRequest,ListPartitionCursorsResponse>
Overrides

listPartitionCursorsPagedCallable()

public UnaryCallable<ListPartitionCursorsRequest,CursorServiceClient.ListPartitionCursorsPagedResponse> listPartitionCursorsPagedCallable()
Returns
Type Description
UnaryCallable<ListPartitionCursorsRequest,ListPartitionCursorsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

streamingCommitCursorCallable()

public BidiStreamingCallable<StreamingCommitCursorRequest,StreamingCommitCursorResponse> streamingCommitCursorCallable()
Returns
Type Description
BidiStreamingCallable<StreamingCommitCursorRequest,StreamingCommitCursorResponse>
Overrides