Class GrpcAdvisoryNotificationsServiceStub (0.9.0)

public class GrpcAdvisoryNotificationsServiceStub extends AdvisoryNotificationsServiceStub

gRPC stub implementation for the AdvisoryNotificationsService service API.

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

Inheritance

java.lang.Object > AdvisoryNotificationsServiceStub > GrpcAdvisoryNotificationsServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcAdvisoryNotificationsServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcAdvisoryNotificationsServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcAdvisoryNotificationsServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcAdvisoryNotificationsServiceStub
Exceptions
TypeDescription
IOException

create(AdvisoryNotificationsServiceStubSettings settings)

public static final GrpcAdvisoryNotificationsServiceStub create(AdvisoryNotificationsServiceStubSettings settings)
Parameter
NameDescription
settingsAdvisoryNotificationsServiceStubSettings
Returns
TypeDescription
GrpcAdvisoryNotificationsServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, ClientContext clientContext)

protected GrpcAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcAdvisoryNotificationsServiceStub, 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
NameDescription
settingsAdvisoryNotificationsServiceStubSettings
clientContextClientContext

GrpcAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcAdvisoryNotificationsServiceStub, 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
NameDescription
settingsAdvisoryNotificationsServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getNotificationCallable()

public UnaryCallable<GetNotificationRequest,Notification> getNotificationCallable()
Returns
TypeDescription
UnaryCallable<GetNotificationRequest,Notification>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listNotificationsCallable()

public UnaryCallable<ListNotificationsRequest,ListNotificationsResponse> listNotificationsCallable()
Returns
TypeDescription
UnaryCallable<ListNotificationsRequest,ListNotificationsResponse>
Overrides

listNotificationsPagedCallable()

public UnaryCallable<ListNotificationsRequest,AdvisoryNotificationsServiceClient.ListNotificationsPagedResponse> listNotificationsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListNotificationsRequest,ListNotificationsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()