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, shutdown
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
public ShutdownSuppressingExecutorServiceAdapter(TaskExecutor taskExecutor)
taskExecutor
- the target executor to delegate to, typically an externally
managed onepublic List<Runnable> shutdownNow()
shutdownNow
in interface ExecutorService
shutdownNow
in class ExecutorServiceAdapter
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.