Package io.sisu.nng
Java NNG - a (somewhat) Java idiomatic way for using NNG
java-nng provides high-level primitives for utilizing nng in common distributed messaging with a focus on:
- Foundational brokerless messaging via core nng objects like
Socket
s andContext
s - Scalable, thread-safe concurrency via
Aio
handles - Durable integration, only utilizing the public (nng_*) api of nng
- Memory safety when using nng objects allocated by nng itself
What java-nng is not:
- a pure Java implementation of the Scalability Protocols
- a JNAerator blindly generated code mess
-
Class Summary Class Description Message Wraps the native NNG message structure and provides convenience methods for ferrying data to and from the JVM.Nng Simple singleton access point.Nng.NngUncaughtExceptionHandler Socket Abstract base class of an nng Socket, implementing the common nng api for Socket communication.TlsConfig A configuration for TLS-enabled transport. -
Enum Summary Enum Description TlsConfig.AuthMode TlsConfig.SocketMode -
Exception Summary Exception Description NngException Wrapper around nng error messages.