Class GrpcCloudSchedulerStub
java.lang.Object
com.google.cloud.scheduler.v1beta1.stub.CloudSchedulerStub
com.google.cloud.scheduler.v1beta1.stub.GrpcCloudSchedulerStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcCloudSchedulerStub
extends CloudSchedulerStub
gRPC stub implementation for the CloudScheduler service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcCloudSchedulerStub, using the given settings.protectedGrpcCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcCloudSchedulerStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcCloudSchedulerStubcreate(ClientContext clientContext) static final GrpcCloudSchedulerStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcCloudSchedulerStubcreate(CloudSchedulerStubSettings settings) UnaryCallable<DeleteJobRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcCloudSchedulerStub
protected GrpcCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcCloudSchedulerStub, 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
-
GrpcCloudSchedulerStub
protected GrpcCloudSchedulerStub(CloudSchedulerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcCloudSchedulerStub, 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 GrpcCloudSchedulerStub create(CloudSchedulerStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcCloudSchedulerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
listJobsCallable
- Overrides:
listJobsCallablein classCloudSchedulerStub
-
listJobsPagedCallable
public UnaryCallable<ListJobsRequest,CloudSchedulerClient.ListJobsPagedResponse> listJobsPagedCallable()- Overrides:
listJobsPagedCallablein classCloudSchedulerStub
-
getJobCallable
- Overrides:
getJobCallablein classCloudSchedulerStub
-
createJobCallable
- Overrides:
createJobCallablein classCloudSchedulerStub
-
updateJobCallable
- Overrides:
updateJobCallablein classCloudSchedulerStub
-
deleteJobCallable
- Overrides:
deleteJobCallablein classCloudSchedulerStub
-
pauseJobCallable
- Overrides:
pauseJobCallablein classCloudSchedulerStub
-
resumeJobCallable
- Overrides:
resumeJobCallablein classCloudSchedulerStub
-
runJobCallable
- Overrides:
runJobCallablein classCloudSchedulerStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classCloudSchedulerStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,CloudSchedulerClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classCloudSchedulerStub
-
getLocationCallable
- Overrides:
getLocationCallablein classCloudSchedulerStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCloudSchedulerStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-