Class HttpJsonHomepageServiceStub (0.5.0)

public class HttpJsonHomepageServiceStub extends HomepageServiceStub

REST stub implementation for the HomepageService service API.

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

Inheritance

java.lang.Object > HomepageServiceStub > HttpJsonHomepageServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(HomepageServiceStubSettings settings)

public static final HttpJsonHomepageServiceStub create(HomepageServiceStubSettings settings)
Parameter
Name Description
settings HomepageServiceStubSettings
Returns
Type Description
HttpJsonHomepageServiceStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

Constructors

HttpJsonHomepageServiceStub(HomepageServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonHomepageServiceStub(HomepageServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonHomepageServiceStub, 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 HomepageServiceStubSettings
clientContext ClientContext

HttpJsonHomepageServiceStub(HomepageServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonHomepageServiceStub(HomepageServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

claimHomepageCallable()

public UnaryCallable<ClaimHomepageRequest,Homepage> claimHomepageCallable()
Returns
Type Description
UnaryCallable<ClaimHomepageRequest,Homepage>
Overrides

close()

public final void close()
Overrides

getHomepageCallable()

public UnaryCallable<GetHomepageRequest,Homepage> getHomepageCallable()
Returns
Type Description
UnaryCallable<GetHomepageRequest,Homepage>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

unclaimHomepageCallable()

public UnaryCallable<UnclaimHomepageRequest,Homepage> unclaimHomepageCallable()
Returns
Type Description
UnaryCallable<UnclaimHomepageRequest,Homepage>
Overrides

updateHomepageCallable()

public UnaryCallable<UpdateHomepageRequest,Homepage> updateHomepageCallable()
Returns
Type Description
UnaryCallable<UpdateHomepageRequest,Homepage>
Overrides