Class AdapterGrpc (0.3.0)

public final class AdapterGrpc

Cloud Spanner Adapter API The Cloud Spanner Adapter service allows native drivers of supported database dialects to interact directly with Cloud Spanner by wrapping the underlying wire protocol used by the driver in a gRPC stream.

Inheritance

java.lang.Object > AdapterGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(AdapterGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(AdapterGrpc.AsyncService service)
Parameter
Name Description
service AdapterGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getAdaptMessageMethod()

public static MethodDescriptor<AdaptMessageRequest,AdaptMessageResponse> getAdaptMessageMethod()
Returns
Type Description
io.grpc.MethodDescriptor<AdaptMessageRequest,AdaptMessageResponse>

getCreateSessionMethod()

public static MethodDescriptor<CreateSessionRequest,Session> getCreateSessionMethod()
Returns
Type Description
io.grpc.MethodDescriptor<CreateSessionRequest,Session>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
Type Description
io.grpc.ServiceDescriptor

newBlockingStub(Channel channel)

public static AdapterGrpc.AdapterBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
AdapterGrpc.AdapterBlockingStub

newBlockingV2Stub(Channel channel)

public static AdapterGrpc.AdapterBlockingV2Stub newBlockingV2Stub(Channel channel)

Creates a new blocking-style stub that supports all types of calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
AdapterGrpc.AdapterBlockingV2Stub

newFutureStub(Channel channel)

public static AdapterGrpc.AdapterFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
AdapterGrpc.AdapterFutureStub

newStub(Channel channel)

public static AdapterGrpc.AdapterStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
AdapterGrpc.AdapterStub