public class ShutdownSuppressingExecutorServiceAdapter
extends org.springframework.core.task.support.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(org.springframework.core.task.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(org.springframework.core.task.TaskExecutor taskExecutor)
taskExecutor - the target executor to delegate to, typically an externally managed onepublic List<Runnable> shutdownNow()
shutdownNow in interface ExecutorServiceshutdownNow in class org.springframework.core.task.support.ExecutorServiceAdapterCopyright © 2016 Pivotal Software, Inc.. All rights reserved.