RESULT - The type of result returned by the execution.public class ExecutionContext<RESULT> extends Object
| Constructor and Description |
|---|
ExecutionContext(Executor<RESULT> executor,
List<PreExecutionListener> preExecutionListeners,
List<PostExecutionListener<RESULT>> postExecutionListeners,
List<DefinedExceptionHandler<?>> exceptionHandlers)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RESULT |
execute(Supplier<RESULT> operation,
List<Object> params)
|
public ExecutionContext(Executor<RESULT> executor, List<PreExecutionListener> preExecutionListeners, List<PostExecutionListener<RESULT>> postExecutionListeners, List<DefinedExceptionHandler<?>> exceptionHandlers)
executor - The handler class that will deal with the execution of the operation.preExecutionListeners - The listeners that will be triggered before executing the operation.postExecutionListeners - The listeners that will be triggered after the execution of the operation.exceptionHandlers - The classes that will be handling the exeptions thrown during the execution.Copyright © 2018. All rights reserved.