Package ratpack.exec
Interface ExecControllerSpec
-
public interface ExecControllerSpecAn 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 interfaceExecControllerSpec.BlockingSpecA specification for defining the default blocking executor.static interfaceExecControllerSpec.ComputeSpecA specification for defining the default computation executor.static interfaceExecControllerSpec.EventLoopSpecA specification for building Netty event loop groups.static interfaceExecControllerSpec.ExecutorServiceSpecA specification for building executor services
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecControllerSpecblocking(Action<? super ExecControllerSpec.BlockingSpec> definition)Configures the default executor for blocking (i.e.ExecControllerSpeccompute(Action<? super ExecControllerSpec.ComputeSpec> definition)Configures the default executor for computation (i.e.ExecControllerSpecinitializer(ExecInitializer initializer)Registers an initializer for executions created by this controller.ExecControllerSpecinterceptor(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()
-
-