Package ratpack.exec
Interface ExecControllerSpec
-
public interface ExecControllerSpec
An additive specification of an execution controller.- Since:
- 2.0
- See Also:
ExecController.of(Action)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ExecControllerSpec.BlockingSpec
A specification for defining the default blocking executor.static interface
ExecControllerSpec.ComputeSpec
A specification for defining the default computation executor.static interface
ExecControllerSpec.EventLoopSpec
A specification for building Netty event loop groups.static interface
ExecControllerSpec.ExecutorServiceSpec
A specification for building executor services
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecControllerSpec
blocking(Action<? super ExecControllerSpec.BlockingSpec> definition)
Configures the default executor for blocking (i.e.ExecControllerSpec
compute(Action<? super ExecControllerSpec.ComputeSpec> definition)
Configures the default executor for computation (i.e.ExecControllerSpec
initializer(ExecInitializer initializer)
Registers an initializer for executions created by this controller.ExecControllerSpec
interceptor(ExecInterceptor interceptor)
Registers an interceptor for execution segments managed by this controller.
-
-
-
Method Detail
-
interceptor
ExecControllerSpec interceptor(ExecInterceptor interceptor)
Registers an interceptor for execution segments managed by this controller.- Parameters:
interceptor
- the interceptor to execute on new execution segments- Returns:
this
-
initializer
ExecControllerSpec initializer(ExecInitializer initializer)
Registers an initializer for executions created by this controller.- Parameters:
initializer
- the initializer to execute on new executions- Returns:
this
-
compute
ExecControllerSpec compute(Action<? super ExecControllerSpec.ComputeSpec> definition)
Configures the default executor for computation (i.e. event loop) work for this controller.- Parameters:
definition
- the specification for the computation executor- Returns:
this
- See Also:
ExecController.getEventLoopGroup()
,ExecController.getExecutor()
-
blocking
ExecControllerSpec blocking(Action<? super ExecControllerSpec.BlockingSpec> definition)
Configures the default executor for blocking (i.e. I/O) work for this controller.- Parameters:
definition
- the specification for the blocking executor- Returns:
this
- See Also:
ExecController.getBlockingExecutor()
-
-