javazeromqjzmq

Does "jzmq" support ZeroMQ Version 3?


anyone knows if the java bindings "jzmq" for ZeroMQ work with ZeroMQ version 3.x.x ? There is NOWEHERE official information about that. Anyone an idea?


Solution

  • Indeed, not easy to find. However, browsing around in the jzmq code, it seems that 3.0 (and possibly higher) versions are supported. Have a look at the following java file, it contains notions about 3.0 including various checks for current zmq version and appropriate handling (e.g. supporting newer zmq 3.0+ functionality):

    https://github.com/zeromq/jzmq/blob/master/src/org/zeromq/ZMQ.java

    For example (line 813 per 2013-01-31):

    /**
    * @since 3.0.0
    */
    public void setSndHWM (long sndHWM) {
        if (ZMQ.version_full() < ZMQ.make_version(3, 0, 0))
            return;
    
        setLongSockopt (SNDHWM, sndHWM);
    }