Class GrpcServiceHealthStub
java.lang.Object
com.google.cloud.servicehealth.v1.stub.ServiceHealthStub
com.google.cloud.servicehealth.v1.stub.GrpcServiceHealthStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the ServiceHealth service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcServiceHealthStub(ServiceHealthStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcServiceHealthStub, using the given settings.protectedGrpcServiceHealthStub(ServiceHealthStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcServiceHealthStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcServiceHealthStubcreate(ClientContext clientContext) static final GrpcServiceHealthStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcServiceHealthStubcreate(ServiceHealthStubSettings settings) booleanbooleanUnaryCallable<ListOrganizationEventsRequest,ServiceHealthClient.ListOrganizationEventsPagedResponse> UnaryCallable<ListOrganizationImpactsRequest,ServiceHealthClient.ListOrganizationImpactsPagedResponse> voidshutdown()void
-
Constructor Details
-
GrpcServiceHealthStub
protected GrpcServiceHealthStub(ServiceHealthStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcServiceHealthStub, 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.- Throws:
IOException
-
GrpcServiceHealthStub
protected GrpcServiceHealthStub(ServiceHealthStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcServiceHealthStub, 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcServiceHealthStub create(ServiceHealthStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcServiceHealthStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
listEventsCallable
- Overrides:
listEventsCallablein classServiceHealthStub
-
listEventsPagedCallable
public UnaryCallable<ListEventsRequest,ServiceHealthClient.ListEventsPagedResponse> listEventsPagedCallable()- Overrides:
listEventsPagedCallablein classServiceHealthStub
-
getEventCallable
- Overrides:
getEventCallablein classServiceHealthStub
-
listOrganizationEventsCallable
public UnaryCallable<ListOrganizationEventsRequest,ListOrganizationEventsResponse> listOrganizationEventsCallable()- Overrides:
listOrganizationEventsCallablein classServiceHealthStub
-
listOrganizationEventsPagedCallable
public UnaryCallable<ListOrganizationEventsRequest,ServiceHealthClient.ListOrganizationEventsPagedResponse> listOrganizationEventsPagedCallable()- Overrides:
listOrganizationEventsPagedCallablein classServiceHealthStub
-
getOrganizationEventCallable
- Overrides:
getOrganizationEventCallablein classServiceHealthStub
-
listOrganizationImpactsCallable
public UnaryCallable<ListOrganizationImpactsRequest,ListOrganizationImpactsResponse> listOrganizationImpactsCallable()- Overrides:
listOrganizationImpactsCallablein classServiceHealthStub
-
listOrganizationImpactsPagedCallable
public UnaryCallable<ListOrganizationImpactsRequest,ServiceHealthClient.ListOrganizationImpactsPagedResponse> listOrganizationImpactsPagedCallable()- Overrides:
listOrganizationImpactsPagedCallablein classServiceHealthStub
-
getOrganizationImpactCallable
public UnaryCallable<GetOrganizationImpactRequest,OrganizationImpact> getOrganizationImpactCallable()- Overrides:
getOrganizationImpactCallablein classServiceHealthStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classServiceHealthStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,ServiceHealthClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classServiceHealthStub
-
getLocationCallable
- Overrides:
getLocationCallablein classServiceHealthStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classServiceHealthStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-