Class NoOpExecutor

  • All Implemented Interfaces:
    Executor

    public class NoOpExecutor
    extends Object
    implements Executor
    Simple 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 Detail

      • INSTANCE

        public static final Executor INSTANCE
    • Constructor Detail

      • NoOpExecutor

        public NoOpExecutor()