Class BackPressuringExecutor

  • All Implemented Interfaces:
    Executor

    @Internal
    public final class BackPressuringExecutor
    extends Object
    implements Executor
    An executor decorator that allows only a certain number of concurrent executions. The execute(Runnable) method blocks once that number of executions is exceeded.
    • Constructor Detail

      • BackPressuringExecutor

        public BackPressuringExecutor​(Executor delegate,
                                      int numConcurrentExecutions)