| Modifier and Type | Field and Description |
|---|---|
| private Predicate | |
| private AsyncTaskExecutor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Predicate | |
| protected AsyncTaskExecutor | |
| public BlockingExecutionConfigurer | setControllerMethodPredicate(Predicate<HandlerMethod>
the predicate to use predicate)Configure a predicate to decide if a controller method is blocking and should be called on a separate thread if an executor is configured. |
| public BlockingExecutionConfigurer | setExecutor(AsyncTaskExecutor
the task executor to use executor)Configure an executor to invoke blocking controller methods with. |
| blockingControllerMethodPredicate | back to summary |
|---|---|
| private Predicate<HandlerMethod> blockingControllerMethodPredicate
| |
| executor | back to summary |
|---|---|
| private AsyncTaskExecutor executor
| |
| BlockingExecutionConfigurer | back to summary |
|---|---|
| public BlockingExecutionConfigurer() | |
| getBlockingControllerMethodPredicate | back to summary |
|---|---|
protected Predicate
| |
| getExecutor | back to summary |
|---|---|
protected AsyncTaskExecutor getExecutor()
| |
| setControllerMethodPredicate | back to summary |
|---|---|
| public BlockingExecutionConfigurer setControllerMethodPredicate(Predicate<HandlerMethod> predicate) Configure a predicate to decide if a controller method is blocking and should be called on a separate thread if an executor is configured. The default predicate matches controller methods whose return type is
not recognized by the configured
| |
| setExecutor | back to summary |
|---|---|
| public BlockingExecutionConfigurer setExecutor(AsyncTaskExecutor executor) Configure an executor to invoke blocking controller methods with. By default, this is not set in which case controller methods are invoked without the use of an Executor.
| |