/** * Returns the default executor. * * @return the execution builder which submits tasks to the default executor. */ public ExecutionBuilder defaultExecutor() { return new ExecutionBuilder(this, DEFAULT); }
/** * Returns the executor for the given category. * <p> * The configuration for this executor is taken from <tt>async.executor.[category]</tt>. If no config is found, * the default values are used. * * @param category the category of the task to be executed, which implies the executor to use. * @return the execution builder which submits tasks to the appropriate executor. */ @Nonnull public ExecutionBuilder executor(String category) { return new ExecutionBuilder(this, category); }