Class HttpJsonBatchControllerStub (4.13.0)

public class HttpJsonBatchControllerStub extends BatchControllerStub

REST stub implementation for the BatchController service API.

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

Inheritance

java.lang.Object > BatchControllerStub > HttpJsonBatchControllerStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonBatchControllerStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonBatchControllerStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonBatchControllerStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonBatchControllerStub
Exceptions
TypeDescription
IOException

create(BatchControllerStubSettings settings)

public static final HttpJsonBatchControllerStub create(BatchControllerStubSettings settings)
Parameter
NameDescription
settingsBatchControllerStubSettings
Returns
TypeDescription
HttpJsonBatchControllerStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonBatchControllerStub(BatchControllerStubSettings settings, ClientContext clientContext)

protected HttpJsonBatchControllerStub(BatchControllerStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonBatchControllerStub, 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
settingsBatchControllerStubSettings
clientContextClientContext

HttpJsonBatchControllerStub(BatchControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonBatchControllerStub(BatchControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonBatchControllerStub, 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
settingsBatchControllerStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

createBatchCallable()

public UnaryCallable<CreateBatchRequest,Operation> createBatchCallable()
Returns
TypeDescription
UnaryCallable<CreateBatchRequest,Operation>
Overrides

createBatchOperationCallable()

public OperationCallable<CreateBatchRequest,Batch,BatchOperationMetadata> createBatchOperationCallable()
Returns
TypeDescription
OperationCallable<CreateBatchRequest,Batch,BatchOperationMetadata>
Overrides

deleteBatchCallable()

public UnaryCallable<DeleteBatchRequest,Empty> deleteBatchCallable()
Returns
TypeDescription
UnaryCallable<DeleteBatchRequest,Empty>
Overrides

getBatchCallable()

public UnaryCallable<GetBatchRequest,Batch> getBatchCallable()
Returns
TypeDescription
UnaryCallable<GetBatchRequest,Batch>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listBatchesCallable()

public UnaryCallable<ListBatchesRequest,ListBatchesResponse> listBatchesCallable()
Returns
TypeDescription
UnaryCallable<ListBatchesRequest,ListBatchesResponse>
Overrides

listBatchesPagedCallable()

public UnaryCallable<ListBatchesRequest,BatchControllerClient.ListBatchesPagedResponse> listBatchesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListBatchesRequest,ListBatchesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()