diff options
Diffstat (limited to 'bindings/java/org/zmq/Context.java')
-rwxr-xr-x[-rw-r--r--] | bindings/java/org/zmq/Context.java | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/bindings/java/org/zmq/Context.java b/bindings/java/org/zmq/Context.java index 3c00ba8..219b26c 100644..100755 --- a/bindings/java/org/zmq/Context.java +++ b/bindings/java/org/zmq/Context.java @@ -36,17 +36,22 @@ public class Context { construct (appThreads, ioThreads, flags); } - /** - * Internal function. Do not use directly! - */ - public native long createSocket (int type); - /** Initialize the JNI interface */ protected native void construct (int appThreads, int ioThreads, int flags); - /** Free resources used by JNI driver. */ + /** Free all resources used by JNI interface. */ protected native void finalize (); + /** + * Get the underlying context handle. + * + * @return the internal 0MQ context handle. + */ + private long getContextHandle () { + return contextHandle; + } + + /** Opaque data used by JNI driver. */ private long contextHandle; } |