Package io.micronaut.scheduling.executor
Interface ExecutorSelector
- All Known Implementing Classes:
- DefaultExecutorSelector
public interface ExecutorSelector
Interface that allows customizing the selection of the 
ExecutorService to run an operation on.- Since:
- 1.0
- Author:
- Graeme Rocher
- 
Method SummaryModifier and TypeMethodDescriptionselect(MethodReference<?, ?> method, ThreadSelection threadSelection) Select anExecutorServicefor the givenMethodReference.Obtain executor for the given name.
- 
Method Details- 
selectSelect anExecutorServicefor the givenMethodReference.- Parameters:
- method- The- MethodReference
- threadSelection- The thread selection mode
- Returns:
- An optional ExecutorService. If anExecutorServicecannot be establishedOptional.empty()is returned
 
- 
selectObtain executor for the given name.- Parameters:
- name- The name of the executor
- Returns:
- An executor if it exists
- Since:
- 3.1.0
 
 
-