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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecControllerSpec.BlockingSpec
executor(Function<ThreadFactory,ExecutorService> executorFactory)
Specify a factory for creating an executor service with the provider arguments.ExecControllerSpec.BlockingSpec
prefix(String prefix)
Specify the thread name prefix to use for threads created by this executor service.ExecControllerSpec.BlockingSpec
priority(int priority)
Specify the thread priority for threads created by this executor service.
-
-
-
Method Detail
-
prefix
ExecControllerSpec.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:
prefix
in interfaceExecControllerSpec.ExecutorServiceSpec
- Parameters:
prefix
- the thread name prefix- Returns:
this
-
priority
ExecControllerSpec.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:
priority
in interfaceExecControllerSpec.ExecutorServiceSpec
- Parameters:
priority
- the thread priority.- Returns:
this
- See Also:
Thread.MAX_PRIORITY
,Thread.MIN_PRIORITY
,Thread.NORM_PRIORITY
-
executor
ExecControllerSpec.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:
executor
in interfaceExecControllerSpec.ExecutorServiceSpec
- Parameters:
executorFactory
- the executor service factory- Returns:
this
-
-