-
Notifications
You must be signed in to change notification settings - Fork 98
Package description
Utility functions for asynchronous execution.
A framework for clients that access a group of multiple service providers.
The sample implementation of HTTP cluster can be found under test/one/nio/cluster.
Utility functions to assist in dynamic bytecode generation using ASM framework.
Simple but high performance HTTP server and client.
An alternative to ReentrantReadWriteLock with smaller memory consumption and a lock upgrade functionality.
A range of tools for managing off-heap memory.
- DirectMemory: allows to allocate memory beyond Java Heap.
- MappedFile: maps and unmaps files to RAM. Supports files larger than 2 GB.
- Malloc: off-heap memory allocator that works in a given memory range.
- MallocMT: a special version of Malloc for multi-threaded applications.
- FixedSizeAllocator: exremely fast lock-free allocator that manages chunks of the fixed size.
- LongHashSet, LongLongHashMap, LongObjectHashMap: off-heap lock-free hash tables with 64-bit keys.
- OffheapMap: an abstraction for building general purpose off-heap hash tables.
- SharedMemory*Map: a generic solution for caching data in shared memory or memory-mapped files.
Simple API to register and unregister MXBeans. Built-in HTTP server for accessing JMX attributes remotely.
Low level socket I/O API with its own native library.
Provides Java layer for Linux-specific networking primitives including epoll_wait(), sendfile() etc.
When running on a system different from Linux/x64, the library falls back to the standard Java implementation based on java.net and java.nio.
Java wrappers around certain Linux system calls for memory, process and user management.
Contains a generic resource pool as well as the socket pool that may be used for implementing various network clients.
RPC server and client that leverages main features of one-nio library: fast network I/O, serialization and class evolution support.
A sample remote cache server using one-nio RPC API can be found at test/one/nio/rpc.
Object serialization framework. While covering nearly all use cases that standard Java serialization does, one-nio is a way faster and produces much smaller binary representation.
Utilizes dynamic bytecode generation. Easily deals with private fields, objects that have no public constructor etc. without Reflection overhead.
Provides the powerful mechanism for resolving class evolution issues. Can also serialize almost any object to JSON.
An extendable general-purpose implementation of TCP Server based on one-nio networking API.
Known to serve more than 100K requests per second.
Some widely used high performance codecs and other utility functions, including
- Base64 encoder/decoder;
- UTF-8 encoder/decoder;
- URL encoder/decoder;
- ByteArrayBuilder (similar to StringBuilder but accumulates result in byte[] array).