Class GrpcLocalInventoryServiceStub (0.15.0)

public class GrpcLocalInventoryServiceStub extends LocalInventoryServiceStub

gRPC stub implementation for the LocalInventoryService service API.

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

Inheritance

java.lang.Object > LocalInventoryServiceStub > GrpcLocalInventoryServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcLocalInventoryServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcLocalInventoryServiceStub
Exceptions
TypeDescription
IOException

create(LocalInventoryServiceStubSettings settings)

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

Constructors

GrpcLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext)

protected GrpcLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcLocalInventoryServiceStub, 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

GrpcLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcLocalInventoryServiceStub(LocalInventoryServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcLocalInventoryServiceStub, 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
callableFactoryGrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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()