@Generated(value="by gapic-generator") @BetaApi public class AutoscalingPolicyServiceClient extends Object implements BackgroundResource
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
}
Note: close() needs to be called on the autoscalingPolicyServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
The surface of this class includes several types of Java methods for each of the API's methods:
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of AutoscalingPolicyServiceSettings to create(). For example:
To customize credentials:
AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
AutoscalingPolicyServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
To customize the endpoint:
AutoscalingPolicyServiceSettings autoscalingPolicyServiceSettings =
AutoscalingPolicyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
AutoscalingPolicyServiceClient autoscalingPolicyServiceClient =
AutoscalingPolicyServiceClient.create(autoscalingPolicyServiceSettings);
Modifier and Type | Class and Description |
---|---|
static class |
AutoscalingPolicyServiceClient.ListAutoscalingPoliciesFixedSizeCollection |
static class |
AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPage |
static class |
AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse |
Modifier | Constructor and Description |
---|---|
protected |
AutoscalingPolicyServiceClient(AutoscalingPolicyServiceSettings settings)
Constructs an instance of AutoscalingPolicyServiceClient, using the given settings.
|
protected |
AutoscalingPolicyServiceClient(AutoscalingPolicyServiceStub stub) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static AutoscalingPolicyServiceClient |
create()
Constructs an instance of AutoscalingPolicyServiceClient with default settings.
|
static AutoscalingPolicyServiceClient |
create(AutoscalingPolicyServiceSettings settings)
Constructs an instance of AutoscalingPolicyServiceClient, using the given settings.
|
static AutoscalingPolicyServiceClient |
create(AutoscalingPolicyServiceStub stub)
Constructs an instance of AutoscalingPolicyServiceClient, using the given stub for making
calls.
|
com.google.cloud.dataproc.v1beta2.AutoscalingPolicy |
createAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request)
Creates new autoscaling policy.
|
com.google.cloud.dataproc.v1beta2.AutoscalingPolicy |
createAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.RegionName parent,
com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy)
Creates new autoscaling policy.
|
com.google.cloud.dataproc.v1beta2.AutoscalingPolicy |
createAutoscalingPolicy(String parent,
com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy)
Creates new autoscaling policy.
|
UnaryCallable<com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest,com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> |
createAutoscalingPolicyCallable()
Creates new autoscaling policy.
|
void |
deleteAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicyName name)
Deletes an autoscaling policy.
|
void |
deleteAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request)
Deletes an autoscaling policy.
|
void |
deleteAutoscalingPolicy(String name)
Deletes an autoscaling policy.
|
UnaryCallable<com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest,Empty> |
deleteAutoscalingPolicyCallable()
Deletes an autoscaling policy.
|
com.google.cloud.dataproc.v1beta2.AutoscalingPolicy |
getAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicyName name)
Retrieves autoscaling policy.
|
com.google.cloud.dataproc.v1beta2.AutoscalingPolicy |
getAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request)
Retrieves autoscaling policy.
|
com.google.cloud.dataproc.v1beta2.AutoscalingPolicy |
getAutoscalingPolicy(String name)
Retrieves autoscaling policy.
|
UnaryCallable<com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest,com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> |
getAutoscalingPolicyCallable()
Retrieves autoscaling policy.
|
AutoscalingPolicyServiceSettings |
getSettings() |
AutoscalingPolicyServiceStub |
getStub() |
boolean |
isShutdown() |
boolean |
isTerminated() |
AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse |
listAutoscalingPolicies(com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request)
Lists autoscaling policies in the project.
|
AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse |
listAutoscalingPolicies(com.google.cloud.dataproc.v1beta2.RegionName parent)
Lists autoscaling policies in the project.
|
AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse |
listAutoscalingPolicies(String parent)
Lists autoscaling policies in the project.
|
UnaryCallable<com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest,com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> |
listAutoscalingPoliciesCallable()
Lists autoscaling policies in the project.
|
UnaryCallable<com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest,AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse> |
listAutoscalingPoliciesPagedCallable()
Lists autoscaling policies in the project.
|
void |
shutdown() |
void |
shutdownNow() |
com.google.cloud.dataproc.v1beta2.AutoscalingPolicy |
updateAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy)
Updates (replaces) autoscaling policy.
|
com.google.cloud.dataproc.v1beta2.AutoscalingPolicy |
updateAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request)
Updates (replaces) autoscaling policy.
|
UnaryCallable<com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest,com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> |
updateAutoscalingPolicyCallable()
Updates (replaces) autoscaling policy.
|
protected AutoscalingPolicyServiceClient(AutoscalingPolicyServiceSettings settings) throws IOException
IOException
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") protected AutoscalingPolicyServiceClient(AutoscalingPolicyServiceStub stub)
public static final AutoscalingPolicyServiceClient create() throws IOException
IOException
public static final AutoscalingPolicyServiceClient create(AutoscalingPolicyServiceSettings settings) throws IOException
IOException
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public static final AutoscalingPolicyServiceClient create(AutoscalingPolicyServiceStub stub)
public final AutoscalingPolicyServiceSettings getSettings()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public AutoscalingPolicyServiceStub getStub()
public final com.google.cloud.dataproc.v1beta2.AutoscalingPolicy createAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.RegionName parent, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent, policy);
}
parent
- Required. The "resource name" of the region, as described in
https://cloud.google.com/apis/design/resource_names of the form
`projects/{project_id}/regions/{region}`.policy
- The autoscaling policy to create.ApiException
- if the remote call failspublic final com.google.cloud.dataproc.v1beta2.AutoscalingPolicy createAutoscalingPolicy(String parent, com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(parent.toString(), policy);
}
parent
- Required. The "resource name" of the region, as described in
https://cloud.google.com/apis/design/resource_names of the form
`projects/{project_id}/regions/{region}`.policy
- The autoscaling policy to create.ApiException
- if the remote call failspublic final com.google.cloud.dataproc.v1beta2.AutoscalingPolicy createAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest request)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder()
.setParent(parent.toString())
.setPolicy(policy)
.build();
AutoscalingPolicy response = autoscalingPolicyServiceClient.createAutoscalingPolicy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call failspublic final UnaryCallable<com.google.cloud.dataproc.v1beta2.CreateAutoscalingPolicyRequest,com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> createAutoscalingPolicyCallable()
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
CreateAutoscalingPolicyRequest request = CreateAutoscalingPolicyRequest.newBuilder()
.setParent(parent.toString())
.setPolicy(policy)
.build();
ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.createAutoscalingPolicyCallable().futureCall(request);
// Do something
AutoscalingPolicy response = future.get();
}
public final com.google.cloud.dataproc.v1beta2.AutoscalingPolicy updateAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicy policy)
Disabled check for update_mask, because all updates will be full replacements.
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(policy);
}
policy
- Required. The updated autoscaling policy.ApiException
- if the remote call failspublic final com.google.cloud.dataproc.v1beta2.AutoscalingPolicy updateAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest request)
Disabled check for update_mask, because all updates will be full replacements.
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
UpdateAutoscalingPolicyRequest request = UpdateAutoscalingPolicyRequest.newBuilder()
.setPolicy(policy)
.build();
AutoscalingPolicy response = autoscalingPolicyServiceClient.updateAutoscalingPolicy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call failspublic final UnaryCallable<com.google.cloud.dataproc.v1beta2.UpdateAutoscalingPolicyRequest,com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> updateAutoscalingPolicyCallable()
Disabled check for update_mask, because all updates will be full replacements.
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicy policy = AutoscalingPolicy.newBuilder().build();
UpdateAutoscalingPolicyRequest request = UpdateAutoscalingPolicyRequest.newBuilder()
.setPolicy(policy)
.build();
ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.updateAutoscalingPolicyCallable().futureCall(request);
// Do something
AutoscalingPolicy response = future.get();
}
public final com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicyName name)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name);
}
name
- Required. The "resource name" of the autoscaling policy, as described in
https://cloud.google.com/apis/design/resource_names of the form
`projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.ApiException
- if the remote call failspublic final com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getAutoscalingPolicy(String name)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(name.toString());
}
name
- Required. The "resource name" of the autoscaling policy, as described in
https://cloud.google.com/apis/design/resource_names of the form
`projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.ApiException
- if the remote call failspublic final com.google.cloud.dataproc.v1beta2.AutoscalingPolicy getAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest request)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
GetAutoscalingPolicyRequest request = GetAutoscalingPolicyRequest.newBuilder()
.setName(name.toString())
.build();
AutoscalingPolicy response = autoscalingPolicyServiceClient.getAutoscalingPolicy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call failspublic final UnaryCallable<com.google.cloud.dataproc.v1beta2.GetAutoscalingPolicyRequest,com.google.cloud.dataproc.v1beta2.AutoscalingPolicy> getAutoscalingPolicyCallable()
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
GetAutoscalingPolicyRequest request = GetAutoscalingPolicyRequest.newBuilder()
.setName(name.toString())
.build();
ApiFuture<AutoscalingPolicy> future = autoscalingPolicyServiceClient.getAutoscalingPolicyCallable().futureCall(request);
// Do something
AutoscalingPolicy response = future.get();
}
public final AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(com.google.cloud.dataproc.v1beta2.RegionName parent)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(parent).iterateAll()) {
// doThingsWith(element);
}
}
parent
- Required. The "resource name" of the region, as described in
https://cloud.google.com/apis/design/resource_names of the form
`projects/{project_id}/regions/{region}`ApiException
- if the remote call failspublic final AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(String parent)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(parent.toString()).iterateAll()) {
// doThingsWith(element);
}
}
parent
- Required. The "resource name" of the region, as described in
https://cloud.google.com/apis/design/resource_names of the form
`projects/{project_id}/regions/{region}`ApiException
- if the remote call failspublic final AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse listAutoscalingPolicies(com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest request)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
.setParent(parent.toString())
.build();
for (AutoscalingPolicy element : autoscalingPolicyServiceClient.listAutoscalingPolicies(request).iterateAll()) {
// doThingsWith(element);
}
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call failspublic final UnaryCallable<com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest,AutoscalingPolicyServiceClient.ListAutoscalingPoliciesPagedResponse> listAutoscalingPoliciesPagedCallable()
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
.setParent(parent.toString())
.build();
ApiFuture<ListAutoscalingPoliciesPagedResponse> future = autoscalingPolicyServiceClient.listAutoscalingPoliciesPagedCallable().futureCall(request);
// Do something
for (AutoscalingPolicy element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final UnaryCallable<com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesRequest,com.google.cloud.dataproc.v1beta2.ListAutoscalingPoliciesResponse> listAutoscalingPoliciesCallable()
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
RegionName parent = RegionName.of("[PROJECT]", "[REGION]");
ListAutoscalingPoliciesRequest request = ListAutoscalingPoliciesRequest.newBuilder()
.setParent(parent.toString())
.build();
while (true) {
ListAutoscalingPoliciesResponse response = autoscalingPolicyServiceClient.listAutoscalingPoliciesCallable().call(request);
for (AutoscalingPolicy element : response.getPoliciesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
public final void deleteAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.AutoscalingPolicyName name)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name);
}
name
- Required. The "resource name" of the autoscaling policy, as described in
https://cloud.google.com/apis/design/resource_names of the form
`projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.ApiException
- if the remote call failspublic final void deleteAutoscalingPolicy(String name)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
autoscalingPolicyServiceClient.deleteAutoscalingPolicy(name.toString());
}
name
- Required. The "resource name" of the autoscaling policy, as described in
https://cloud.google.com/apis/design/resource_names of the form
`projects/{project_id}/regions/{region}/autoscalingPolicies/{policy_id}`.ApiException
- if the remote call failspublic final void deleteAutoscalingPolicy(com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest request)
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
DeleteAutoscalingPolicyRequest request = DeleteAutoscalingPolicyRequest.newBuilder()
.setName(name.toString())
.build();
autoscalingPolicyServiceClient.deleteAutoscalingPolicy(request);
}
request
- The request object containing all of the parameters for the API call.ApiException
- if the remote call failspublic final UnaryCallable<com.google.cloud.dataproc.v1beta2.DeleteAutoscalingPolicyRequest,Empty> deleteAutoscalingPolicyCallable()
Sample code:
try (AutoscalingPolicyServiceClient autoscalingPolicyServiceClient = AutoscalingPolicyServiceClient.create()) {
AutoscalingPolicyName name = AutoscalingPolicyName.of("[PROJECT]", "[REGION]", "[AUTOSCALING_POLICY]");
DeleteAutoscalingPolicyRequest request = DeleteAutoscalingPolicyRequest.newBuilder()
.setName(name.toString())
.build();
ApiFuture<Void> future = autoscalingPolicyServiceClient.deleteAutoscalingPolicyCallable().futureCall(request);
// Do something
future.get();
}
public final void close()
close
in interface AutoCloseable
public void shutdown()
shutdown
in interface BackgroundResource
public boolean isShutdown()
isShutdown
in interface BackgroundResource
public boolean isTerminated()
isTerminated
in interface BackgroundResource
public void shutdownNow()
shutdownNow
in interface BackgroundResource
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
awaitTermination
in interface BackgroundResource
InterruptedException
Copyright © 2019 Google LLC. All rights reserved.