Package software.amazon.awssdk.utils
Class ScheduledExecutorUtils
java.lang.Object
software.amazon.awssdk.utils.ScheduledExecutorUtils
Utilities that make it easier to create, use and destroy
s.
invalid reference
ScheduledExecutor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Wrapper aroundScheduledExecutorService
to prevent it from being closed. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledExecutorService
Wrap a scheduled executor in a type that cannot be closed, or shut down.static ScheduledExecutorService
Unwrap a scheduled executor.
-
Method Details
-
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.
-