Class GrpcSnoozeServiceStub
java.lang.Object
com.google.cloud.monitoring.v3.stub.SnoozeServiceStub
com.google.cloud.monitoring.v3.stub.GrpcSnoozeServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the SnoozeService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcSnoozeServiceStub(SnoozeServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcSnoozeServiceStub, using the given settings.protectedGrpcSnoozeServiceStub(SnoozeServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcSnoozeServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcSnoozeServiceStubcreate(ClientContext clientContext) static final GrpcSnoozeServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcSnoozeServiceStubcreate(SnoozeServiceStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcSnoozeServiceStub
protected GrpcSnoozeServiceStub(SnoozeServiceStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
GrpcSnoozeServiceStub
protected GrpcSnoozeServiceStub(SnoozeServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcSnoozeServiceStub create(SnoozeServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcSnoozeServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createSnoozeCallable
- Overrides:
createSnoozeCallablein classSnoozeServiceStub
-
listSnoozesCallable
- Overrides:
listSnoozesCallablein classSnoozeServiceStub
-
listSnoozesPagedCallable
public UnaryCallable<ListSnoozesRequest,SnoozeServiceClient.ListSnoozesPagedResponse> listSnoozesPagedCallable()- Overrides:
listSnoozesPagedCallablein classSnoozeServiceStub
-
getSnoozeCallable
- Overrides:
getSnoozeCallablein classSnoozeServiceStub
-
updateSnoozeCallable
- Overrides:
updateSnoozeCallablein classSnoozeServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classSnoozeServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-