private static class SimpleAsyncTaskExecutor.ConcurrencyThrottleAdapter extends ConcurrencyThrottleSupport
beforeAccess()
and afterAccess()
visible to the surrounding class.logger, NO_CONCURRENCY, UNBOUNDED_CONCURRENCY
Modifier | Constructor and Description |
---|---|
private |
ConcurrencyThrottleAdapter() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterAccess()
To be invoked after the main execution logic of concrete subclasses.
|
protected void |
beforeAccess()
To be invoked before the main execution logic of concrete subclasses.
|
getConcurrencyLimit, isThrottleActive, setConcurrencyLimit
protected void beforeAccess()
ConcurrencyThrottleSupport
This implementation applies the concurrency throttle.
beforeAccess
in class ConcurrencyThrottleSupport
ConcurrencyThrottleSupport.afterAccess()
protected void afterAccess()
ConcurrencyThrottleSupport
afterAccess
in class ConcurrencyThrottleSupport
ConcurrencyThrottleSupport.beforeAccess()