Class GrpcSnoozeServiceStub (3.48.0)

public class GrpcSnoozeServiceStub extends SnoozeServiceStub

gRPC stub implementation for the SnoozeService service API.

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

Inheritance

java.lang.Object > SnoozeServiceStub > GrpcSnoozeServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(SnoozeServiceStubSettings settings)

public static final GrpcSnoozeServiceStub create(SnoozeServiceStubSettings settings)
Parameter
Name Description
settings SnoozeServiceStubSettings
Returns
Type Description
GrpcSnoozeServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcSnoozeServiceStub(SnoozeServiceStubSettings settings, ClientContext clientContext)

protected GrpcSnoozeServiceStub(SnoozeServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcSnoozeServiceStub, 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 SnoozeServiceStubSettings
clientContext ClientContext

GrpcSnoozeServiceStub(SnoozeServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcSnoozeServiceStub(SnoozeServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

createSnoozeCallable()

public UnaryCallable<CreateSnoozeRequest,Snooze> createSnoozeCallable()
Returns
Type Description
UnaryCallable<CreateSnoozeRequest,Snooze>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

getSnoozeCallable()

public UnaryCallable<GetSnoozeRequest,Snooze> getSnoozeCallable()
Returns
Type Description
UnaryCallable<GetSnoozeRequest,Snooze>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listSnoozesCallable()

public UnaryCallable<ListSnoozesRequest,ListSnoozesResponse> listSnoozesCallable()
Returns
Type Description
UnaryCallable<ListSnoozesRequest,ListSnoozesResponse>
Overrides

listSnoozesPagedCallable()

public UnaryCallable<ListSnoozesRequest,SnoozeServiceClient.ListSnoozesPagedResponse> listSnoozesPagedCallable()
Returns
Type Description
UnaryCallable<ListSnoozesRequest,ListSnoozesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateSnoozeCallable()

public UnaryCallable<UpdateSnoozeRequest,Snooze> updateSnoozeCallable()
Returns
Type Description
UnaryCallable<UpdateSnoozeRequest,Snooze>
Overrides