Package org.apache.qpid.jms.util
Class NoOpExecutor
- java.lang.Object
-
- org.apache.qpid.jms.util.NoOpExecutor
-
- All Implemented Interfaces:
java.util.concurrent.Executor
public class NoOpExecutor extends java.lang.Object implements java.util.concurrent.ExecutorSimple executor implementation that ignores any requests to execute a task. This can be used in the case where an executor should be returned or provided but the state of the application or object is such that it will not process any new work and the result of ignoring the request does not impact the application.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.ExecutorINSTANCE
-
Constructor Summary
Constructors Constructor Description NoOpExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(java.lang.Runnable command)
-