Class HttpJsonPromotionsServiceStub (0.9.0)

public class HttpJsonPromotionsServiceStub extends PromotionsServiceStub

REST stub implementation for the PromotionsService service API.

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

Inheritance

java.lang.Object > PromotionsServiceStub > HttpJsonPromotionsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(PromotionsServiceStubSettings settings)

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

getMethodDescriptors()

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

Constructors

HttpJsonPromotionsServiceStub(PromotionsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonPromotionsServiceStub(PromotionsServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonPromotionsServiceStub(PromotionsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonPromotionsServiceStub(PromotionsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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