Class GrpcCursorServiceStub (1.5.5)

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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcCursorServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCursorServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcCursorServiceStub
Exceptions
TypeDescription
IOException

create(CursorServiceStubSettings settings)

public static final GrpcCursorServiceStub create(CursorServiceStubSettings settings)
Parameter
NameDescription
settingsCursorServiceStubSettings
Returns
TypeDescription
GrpcCursorServiceStub
Exceptions
TypeDescription
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
NameDescription
settingsCursorServiceStubSettings
clientContextClientContext

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
NameDescription
settingsCursorServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

commitCursorCallable()

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listPartitionCursorsCallable()

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

listPartitionCursorsPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

streamingCommitCursorCallable()

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