public class ExecutorUtils extends Object
| Constructor and Description |
|---|
ExecutorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
stop(ExecutorService exec)
Shuts down an executor and waits up to 1 hour for the already submitted jobs to finish.
|
static void |
stop(ExecutorService exec,
int timeout,
TimeUnit unit)
Shuts down an executor and waits for the job to finish until the given timeout is reached
before forcing an immediate shutdown.
|
public ExecutorUtils()
public static void stop(ExecutorService exec)
exec - public static void stop(ExecutorService exec, int timeout, TimeUnit unit)
exec - timeout - unit - Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.