public class ShutdownSuppressingExecutorServiceAdapter extends ExecutorServiceAdapter
ExecutorService implementation that ignores
shutdownNow() calls which are made by the Amazon Webservice clients. If these
clients receive an externally managed
TaskExecutor this implementation suppresses the
calls to avoid exception during application shutdown.| Constructor and Description |
|---|
ShutdownSuppressingExecutorServiceAdapter(TaskExecutor taskExecutor)
Create a new SuppressingExecutorServiceAdapter, using the given target executor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Runnable> |
shutdownNow() |
awaitTermination, execute, isShutdown, isTerminated, shutdowninvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic ShutdownSuppressingExecutorServiceAdapter(TaskExecutor taskExecutor)
taskExecutor - the target executor to delegate to, typically an externally
managed onepublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServiceshutdownNow in class ExecutorServiceAdapterCopyright © 2021 Pivotal Software, Inc.. All rights reserved.