Package software.amazon.awssdk.utils
Class ScheduledExecutorUtils
- java.lang.Object
-
- software.amazon.awssdk.utils.ScheduledExecutorUtils
-
@SdkProtectedApi public final class ScheduledExecutorUtils extends Object
Utilities that make it easier to create, use and destroyScheduledExecutors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScheduledExecutorUtils.UnmanagedScheduledExecutorServiceWrapper aroundScheduledExecutorServiceto prevent it from being closed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ScheduledExecutorServiceunmanagedScheduledExecutor(ScheduledExecutorService executor)Wrap a scheduled executor in a type that cannot be closed, or shut down.static ScheduledExecutorServiceunwrapUnmanagedScheduledExecutor(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.
-
-