[zeromq-dev] a more modern, Java-idiomatic jzmq/jeromq API

Pieter Hintjens ph at imatix.com
Sun Feb 3 13:57:01 CET 2013

On Sun, Feb 3, 2013 at 5:27 AM, John Watson <jkwatson at gmail.com> wrote:

> In general, I want to create an API that will look like a first-class,
> modern java API, rather than a thin wrapper over the C API.

This is IMO a really excellent idea. JZMQ is a mapping of the low
level C API, which is not that wonderful to work with.

It's the same reason we built CZMQ.

I'd encourage you to look at CZMQ and at least use some common
terminology, if you don't map to similar classes. The key features
which help a lot are:

* message = list of frames
* attached threads, connected by 'pipes'
* automatic closing of sockets when context is destroyed
* context-level linger option

I'm also thinking of writing a class to hide zmq_poll and do that more
neatly, e.g. manage tickless timers automatically.


More information about the zeromq-dev mailing list