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, shutdown
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
public 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 ExecutorService
shutdownNow
in class org.springframework.core.task.support.ExecutorServiceAdapter
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.