XNIO Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
* [[XNIO#Subjects|XNIO]]
* [[XNIO#Subjects|XNIO]]
* [[Undertow Concepts]]
* [[Undertow Concepts]]
=Overview=
XNIO is a simplified low-level I/O layer, built in top of Java NIO. It has an API for combining blocking and non-blocking operations, even on the same channel.


=NIO Concepts=
=NIO Concepts=

Revision as of 02:43, 19 January 2016

Internal

Overview

XNIO is a simplified low-level I/O layer, built in top of Java NIO. It has an API for combining blocking and non-blocking operations, even on the same channel.

NIO Concepts

XNIO Worker

An XNIO worker is the central point of coordination for a network application. It manages several kind of threads, and the threads created by the worker are tagged with the worker name. A worker has two different types of thread pools:

I/O Threads

The I/O threads come in two types:

  • Read threads that can handle callbacks for read events.
  • Write threads that can handle callback for write events.

Worker Threads

The worker threads are managed by a standard Executor-based thread pool.

XNIO Listener