Class GrpcHomepageServiceStub (0.10.0)

public class GrpcHomepageServiceStub extends HomepageServiceStub

gRPC stub implementation for the HomepageService service API.

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

Inheritance

java.lang.Object > HomepageServiceStub > GrpcHomepageServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(HomepageServiceStubSettings settings)

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

Constructors

GrpcHomepageServiceStub(HomepageServiceStubSettings settings, ClientContext clientContext)

protected GrpcHomepageServiceStub(HomepageServiceStubSettings settings, ClientContext clientContext)

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

GrpcHomepageServiceStub(HomepageServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcHomepageServiceStub(HomepageServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

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