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

    Fields
    Modifier and Type
    Field
    Description
    static final KernelFactory
    Default kernel factory implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    createKernel(int channel, int port)
    Creates a kernel for the specified channel and port.
  • Field Details

    • DEFAULT

      static final KernelFactory DEFAULT
      Default kernel factory implementation.
  • Method Details

    • createKernel

      Kernel createKernel(int channel, int port) throws IOException
      Creates a kernel for the specified channel and port.
      Parameters:
      channel - the logical channel index
      port - the bound port
      Returns:
      the created kernel
      Throws:
      IOException - if the kernel cannot be created