Class HttpJsonAdapterStub
java.lang.Object
com.google.spanner.adapter.v1.stub.AdapterStub
com.google.spanner.adapter.v1.stub.HttpJsonAdapterStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
REST stub implementation for the Adapter service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonAdapterStub(AdapterStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonAdapterStub, using the given settings.protectedHttpJsonAdapterStub(AdapterStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonAdapterStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonAdapterStubcreate(ClientContext clientContext) static final HttpJsonAdapterStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonAdapterStubcreate(AdapterStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()void
-
Constructor Details
-
HttpJsonAdapterStub
protected HttpJsonAdapterStub(AdapterStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonAdapterStub, 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.- Throws:
IOException
-
HttpJsonAdapterStub
protected HttpJsonAdapterStub(AdapterStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonAdapterStub, 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.- Throws:
IOException
-
-
Method Details
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonAdapterStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
createSessionCallable
- Overrides:
createSessionCallablein classAdapterStub
-
adaptMessageCallable
- Overrides:
adaptMessageCallablein classAdapterStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classAdapterStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-