Class HttpJsonAdvisoryNotificationsServiceStub (0.11.0)

public class HttpJsonAdvisoryNotificationsServiceStub extends AdvisoryNotificationsServiceStub

REST stub implementation for the AdvisoryNotificationsService service API.

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

Inheritance

java.lang.Object > AdvisoryNotificationsServiceStub > HttpJsonAdvisoryNotificationsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonAdvisoryNotificationsServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonAdvisoryNotificationsServiceStub
Exceptions
TypeDescription
IOException

create(AdvisoryNotificationsServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonAdvisoryNotificationsServiceStub(AdvisoryNotificationsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

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

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