summaryrefslogtreecommitdiff
path: root/bindings/java/org/zmq/Context.java
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-02-23 11:52:33 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-02-23 11:52:33 +0100
commit7c0df6ee02eb792c6afea7f047539840addb2f02 (patch)
treee59f52f853a6838c78528b1dba144749a34cb33a /bindings/java/org/zmq/Context.java
parentef1b5974891a30b15299464859023a531c2328f8 (diff)
Java binding beautified, inline documentation added
Diffstat (limited to 'bindings/java/org/zmq/Context.java')
-rwxr-xr-x[-rw-r--r--]bindings/java/org/zmq/Context.java17
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;
}