Class NioKernelFactory
java.lang.Object
com.jme3.network.base.NioKernelFactory
- All Implemented Interfaces:
KernelFactory
KernelFactory implementation for creating TCP kernels
using the NIO selector model.
- Author:
- Paul Speed
-
Field Summary
Fields inherited from interface KernelFactory
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateKernel(int channel, int port) Creates a kernel for the specified channel and port.
-
Constructor Details
-
NioKernelFactory
public NioKernelFactory()Creates a TCP NIO kernel factory.
-
-
Method Details
-
createKernel
Description copied from interface:KernelFactoryCreates a kernel for the specified channel and port.- Specified by:
createKernelin interfaceKernelFactory- Parameters:
channel- the logical channel indexport- the bound port- Returns:
- the created kernel
- Throws:
IOException- if the kernel cannot be created
-