Class GrpcPromotionsServiceStub (0.9.0)

public class GrpcPromotionsServiceStub extends PromotionsServiceStub

gRPC stub implementation for the PromotionsService service API.

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

Inheritance

java.lang.Object > PromotionsServiceStub > GrpcPromotionsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(PromotionsServiceStubSettings settings)

public static final GrpcPromotionsServiceStub create(PromotionsServiceStubSettings settings)
Parameter
Name Description
settings PromotionsServiceStubSettings
Returns
Type Description
GrpcPromotionsServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcPromotionsServiceStub(PromotionsServiceStubSettings settings, ClientContext clientContext)

protected GrpcPromotionsServiceStub(PromotionsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcPromotionsServiceStub, 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 PromotionsServiceStubSettings
clientContext ClientContext

GrpcPromotionsServiceStub(PromotionsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcPromotionsServiceStub(PromotionsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcPromotionsServiceStub, 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 PromotionsServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getPromotionCallable()

public UnaryCallable<GetPromotionRequest,Promotion> getPromotionCallable()
Returns
Type Description
UnaryCallable<GetPromotionRequest,Promotion>
Overrides

insertPromotionCallable()

public UnaryCallable<InsertPromotionRequest,Promotion> insertPromotionCallable()
Returns
Type Description
UnaryCallable<InsertPromotionRequest,Promotion>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listPromotionsCallable()

public UnaryCallable<ListPromotionsRequest,ListPromotionsResponse> listPromotionsCallable()
Returns
Type Description
UnaryCallable<ListPromotionsRequest,ListPromotionsResponse>
Overrides

listPromotionsPagedCallable()

public UnaryCallable<ListPromotionsRequest,PromotionsServiceClient.ListPromotionsPagedResponse> listPromotionsPagedCallable()
Returns
Type Description
UnaryCallable<ListPromotionsRequest,ListPromotionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()