Package software.amazon.awssdk.utils
Class ScheduledExecutorUtils
- java.lang.Object
-
- software.amazon.awssdk.utils.ScheduledExecutorUtils
-
public final class ScheduledExecutorUtils extends Object
Utilities that make it easier to create, use and destroyScheduledExecutor
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScheduledExecutorUtils.UnmanagedScheduledExecutorService
Wrapper aroundScheduledExecutorService
to prevent it from being closed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScheduledExecutorService
unmanagedScheduledExecutor(ScheduledExecutorService executor)
Wrap a scheduled executor in a type that cannot be closed, or shut down.static ScheduledExecutorService
unwrapUnmanagedScheduledExecutor(ScheduledExecutorService executor)
Unwrap a scheduled executor.
-
-
-
Method Detail
-
unmanagedScheduledExecutor
public static ScheduledExecutorService unmanagedScheduledExecutor(ScheduledExecutorService executor)
Wrap a scheduled executor in a type that cannot be closed, or shut down.
-
unwrapUnmanagedScheduledExecutor
public static ScheduledExecutorService unwrapUnmanagedScheduledExecutor(ScheduledExecutorService executor)
Unwrap a scheduled executor. Requires the UnmanagedScheduledExecutorService to be the "outer" type.
-
-