public interface ExecutorSelector
ExecutorService to run an operation on.| Modifier and Type | Method and Description | 
|---|---|
Optional<ExecutorService> | 
select(MethodReference method,
      ThreadSelection threadSelection)
Select an  
ExecutorService for the given MethodReference. | 
Optional<ExecutorService> | 
select(String name)
Obtain executor for the given name. 
 | 
Optional<ExecutorService> select(MethodReference method, ThreadSelection threadSelection)
ExecutorService for the given MethodReference.method - The MethodReferencethreadSelection - The thread selection modeExecutorService. If an ExecutorService cannot be established
 Optional.empty() is returnedOptional<ExecutorService> select(String name)
name - The name of the executor