Class HttpJsonLocalInventoryServiceStub (0.17.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonLocalInventoryServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(LocalInventoryServiceStubSettings settings)

public static final HttpJsonLocalInventoryServiceStub create(LocalInventoryServiceStubSettings settings)
Parameter
NameDescription
settingsLocalInventoryServiceStubSettings
Returns
TypeDescription
HttpJsonLocalInventoryServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsLocalInventoryServiceStubSettings
clientContextClientContext

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
NameDescription
settingsLocalInventoryServiceStubSettings
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

deleteLocalInventoryCallable()

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

insertLocalInventoryCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listLocalInventoriesCallable()

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

listLocalInventoriesPagedCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()