Class HttpJsonDatastoreStub
java.lang.Object
com.google.cloud.datastore.v1.stub.DatastoreStub
com.google.cloud.datastore.v1.stub.HttpJsonDatastoreStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
REST stub implementation for the Datastore service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonDatastoreStub(DatastoreStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of HttpJsonDatastoreStub, using the given settings.protectedHttpJsonDatastoreStub(DatastoreStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonDatastoreStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.rpc.UnaryCallable<AllocateIdsRequest,AllocateIdsResponse> booleanawaitTermination(long duration, TimeUnit unit) com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> final voidclose()com.google.api.gax.rpc.UnaryCallable<CommitRequest,CommitResponse> static final HttpJsonDatastoreStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final HttpJsonDatastoreStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) static final HttpJsonDatastoreStubcreate(DatastoreStubSettings settings) static List<com.google.api.gax.httpjson.ApiMethodDescriptor>booleanbooleancom.google.api.gax.rpc.UnaryCallable<LookupRequest,LookupResponse> com.google.api.gax.rpc.UnaryCallable<ReserveIdsRequest,ReserveIdsResponse> com.google.api.gax.rpc.UnaryCallable<RollbackRequest,RollbackResponse> com.google.api.gax.rpc.UnaryCallable<RunAggregationQueryRequest,RunAggregationQueryResponse> com.google.api.gax.rpc.UnaryCallable<RunQueryRequest,RunQueryResponse> voidshutdown()void
-
Constructor Details
-
HttpJsonDatastoreStub
protected HttpJsonDatastoreStub(DatastoreStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of HttpJsonDatastoreStub, 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
-
HttpJsonDatastoreStub
protected HttpJsonDatastoreStub(DatastoreStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonDatastoreStub, 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
public static final HttpJsonDatastoreStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonDatastoreStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors() -
lookupCallable
- Overrides:
lookupCallablein classDatastoreStub
-
runQueryCallable
- Overrides:
runQueryCallablein classDatastoreStub
-
runAggregationQueryCallable
public com.google.api.gax.rpc.UnaryCallable<RunAggregationQueryRequest,RunAggregationQueryResponse> runAggregationQueryCallable()- Overrides:
runAggregationQueryCallablein classDatastoreStub
-
beginTransactionCallable
public com.google.api.gax.rpc.UnaryCallable<BeginTransactionRequest,BeginTransactionResponse> beginTransactionCallable()- Overrides:
beginTransactionCallablein classDatastoreStub
-
commitCallable
- Overrides:
commitCallablein classDatastoreStub
-
rollbackCallable
- Overrides:
rollbackCallablein classDatastoreStub
-
allocateIdsCallable
public com.google.api.gax.rpc.UnaryCallable<AllocateIdsRequest,AllocateIdsResponse> allocateIdsCallable()- Overrides:
allocateIdsCallablein classDatastoreStub
-
reserveIdsCallable
public com.google.api.gax.rpc.UnaryCallable<ReserveIdsRequest,ReserveIdsResponse> reserveIdsCallable()- Overrides:
reserveIdsCallablein classDatastoreStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classDatastoreStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-