Class GrpcConsumerProcurementServiceStub (0.17.0)

public class GrpcConsumerProcurementServiceStub extends ConsumerProcurementServiceStub

gRPC stub implementation for the ConsumerProcurementService service API.

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

Inheritance

java.lang.Object > ConsumerProcurementServiceStub > GrpcConsumerProcurementServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ConsumerProcurementServiceStubSettings settings)

public static final GrpcConsumerProcurementServiceStub create(ConsumerProcurementServiceStubSettings settings)
Parameter
NameDescription
settingsConsumerProcurementServiceStubSettings
Returns
TypeDescription
GrpcConsumerProcurementServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext)

protected GrpcConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcConsumerProcurementServiceStub, 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
settingsConsumerProcurementServiceStubSettings
clientContextClientContext

GrpcConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcConsumerProcurementServiceStub(ConsumerProcurementServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getOrderCallable()

public UnaryCallable<GetOrderRequest,Order> getOrderCallable()
Returns
TypeDescription
UnaryCallable<GetOrderRequest,Order>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listOrdersCallable()

public UnaryCallable<ListOrdersRequest,ListOrdersResponse> listOrdersCallable()
Returns
TypeDescription
UnaryCallable<ListOrdersRequest,ListOrdersResponse>
Overrides

listOrdersPagedCallable()

public UnaryCallable<ListOrdersRequest,ConsumerProcurementServiceClient.ListOrdersPagedResponse> listOrdersPagedCallable()
Returns
TypeDescription
UnaryCallable<ListOrdersRequest,ListOrdersPagedResponse>
Overrides

placeOrderCallable()

public UnaryCallable<PlaceOrderRequest,Operation> placeOrderCallable()
Returns
TypeDescription
UnaryCallable<PlaceOrderRequest,Operation>
Overrides

placeOrderOperationCallable()

public OperationCallable<PlaceOrderRequest,Order,PlaceOrderMetadata> placeOrderOperationCallable()
Returns
TypeDescription
OperationCallable<PlaceOrderRequest,Order,PlaceOrderMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()