Package ratpack.exec
Interface ExecControllerSpec.BlockingSpec
- 
- All Superinterfaces:
- ExecControllerSpec.ExecutorServiceSpec
 - Enclosing interface:
- ExecControllerSpec
 
 public static interface ExecControllerSpec.BlockingSpec extends ExecControllerSpec.ExecutorServiceSpec A specification for defining the default blocking executor.All parameters for this specification have defaults that can be overwritten. - See Also:
- ExecControllerSpec.ExecutorServiceSpec
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecControllerSpec.BlockingSpecexecutor(Function<ThreadFactory,ExecutorService> executorFactory)Specify a factory for creating an executor service with the provider arguments.ExecControllerSpec.BlockingSpecprefix(String prefix)Specify the thread name prefix to use for threads created by this executor service.ExecControllerSpec.BlockingSpecpriority(int priority)Specify the thread priority for threads created by this executor service.
 
- 
- 
- 
Method Detail- 
prefixExecControllerSpec.BlockingSpec prefix(String prefix) Specify the thread name prefix to use for threads created by this executor service.The default value for this parameter is "ratpack-blocking"- Specified by:
- prefixin interface- ExecControllerSpec.ExecutorServiceSpec
- Parameters:
- prefix- the thread name prefix
- Returns:
- this
 
 - 
priorityExecControllerSpec.BlockingSpec priority(int priority) Specify the thread priority for threads created by this executor service.The default value for this parameter is Thread.MIN_PRIORITY- Specified by:
- priorityin interface- ExecControllerSpec.ExecutorServiceSpec
- Parameters:
- priority- the thread priority.
- Returns:
- this
- See Also:
- Thread.MAX_PRIORITY,- Thread.MIN_PRIORITY,- Thread.NORM_PRIORITY
 
 - 
executorExecControllerSpec.BlockingSpec executor(Function<ThreadFactory,ExecutorService> executorFactory) Specify a factory for creating an executor service with the provider arguments.The default value for this factory is ::newCachedThreadPool- Specified by:
- executorin interface- ExecControllerSpec.ExecutorServiceSpec
- Parameters:
- executorFactory- the executor service factory
- Returns:
- this
 
 
- 
 
-