Package io.sisu.nng
Class Nng
- java.lang.Object
-
- io.sisu.nng.Nng
-
public class Nng extends java.lang.Object
Simple singleton access point. Only works in simple environments where nng is installed in standard places. Use either thejna.library.path
System property or set aJNA_LIBRARY_PATH
environment variable to point to the location of libnng if it's not already accessible. You may need to also add this to the classpath.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Nng.NngUncaughtExceptionHandler
-
Field Summary
Fields Modifier and Type Field Description static Nng.NngUncaughtExceptionHandler
exceptionHandler
-
Constructor Summary
Constructors Constructor Description Nng()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NngLibrary
lib()
Get a reference to the nng library, registering it if needed.
-
-
-
Field Detail
-
exceptionHandler
public static final Nng.NngUncaughtExceptionHandler exceptionHandler
-
-
Method Detail
-
lib
public static NngLibrary lib()
Get a reference to the nng library, registering it if needed.- Returns:
- a direct-mapped NngLibrary utilizing native methods
-
-