Class HttpJsonLocalInventoryServiceStub (0.21.0)

public class HttpJsonLocalInventoryServiceStub extends LocalInventoryServiceStub

REST stub implementation for the LocalInventoryService service API.

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

Inheritance

java.lang.Object > LocalInventoryServiceStub > HttpJsonLocalInventoryServiceStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonLocalInventoryServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonLocalInventoryServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonLocalInventoryServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonLocalInventoryServiceStub
Exceptions
Type Description
IOException

create(LocalInventoryServiceStubSettings settings)

public static final HttpJsonLocalInventoryServiceStub create(LocalInventoryServiceStubSettings settings)
Parameter
Name Description
settings LocalInventoryServiceStubSettings
Returns
Type Description
HttpJsonLocalInventoryServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonLocalInventoryServiceStub, 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
Name Description
settings LocalInventoryServiceStubSettings
clientContext ClientContext

HttpJsonLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonLocalInventoryServiceStub, 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
Name Description
settings LocalInventoryServiceStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteLocalInventoryCallable()

public UnaryCallable<DeleteLocalInventoryRequest,Empty> deleteLocalInventoryCallable()
Returns
Type Description
UnaryCallable<DeleteLocalInventoryRequest,Empty>
Overrides

insertLocalInventoryCallable()

public UnaryCallable<InsertLocalInventoryRequest,LocalInventory> insertLocalInventoryCallable()
Returns
Type Description
UnaryCallable<InsertLocalInventoryRequest,LocalInventory>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listLocalInventoriesCallable()

public UnaryCallable<ListLocalInventoriesRequest,ListLocalInventoriesResponse> listLocalInventoriesCallable()
Returns
Type Description
UnaryCallable<ListLocalInventoriesRequest,ListLocalInventoriesResponse>
Overrides

listLocalInventoriesPagedCallable()

public UnaryCallable<ListLocalInventoriesRequest,LocalInventoryServiceClient.ListLocalInventoriesPagedResponse> listLocalInventoriesPagedCallable()
Returns
Type Description
UnaryCallable<ListLocalInventoriesRequest,ListLocalInventoriesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()