Package convex.net

Class NIOServer

java.lang.Object
convex.net.NIOServer
All Implemented Interfaces:
Closeable, AutoCloseable

public class NIOServer extends Object implements Closeable
NIO Server implementation that handles incoming messages on a given port. Allocates a single thread for the selector. Incoming messages are associated with a Connection (which is created if required), then placed on the receive message queue. This will block if the receive queue is full (thereby applying back-pressure to clients)