Interface KernelFactory
- All Known Implementing Classes:
NioKernelFactory
public interface KernelFactory
Supplied to the DefaultServer to create any additional
channel kernels that might be required.
- Author:
- Paul Speed
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KernelFactoryDefault kernel factory implementation. -
Method Summary
Modifier and TypeMethodDescriptioncreateKernel(int channel, int port) Creates a kernel for the specified channel and port.
-
Field Details
-
DEFAULT
Default kernel factory implementation.
-
-
Method Details
-
createKernel
Creates a kernel for the specified channel and port.- Parameters:
channel- the logical channel indexport- the bound port- Returns:
- the created kernel
- Throws:
IOException- if the kernel cannot be created
-