Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.46 KB

pollers.md

File metadata and controls

42 lines (26 loc) · 1.46 KB

Pollers

There are multiple classes implementing polling behavior in JeroMQ.

tl;dr: How do I construct a Poller?

Use ZContext.createPoller. This returns a ZMQ.Poller.

zmq.poll.Poller

zmq.poll.Poller contains low-level implementation details of ZeroMQ polling behavior.

It should not be used directly in code that uses the JeroMQ library.

org.zeromq.ZMQ.Poller

ZMQ.Poller is the user-facing API for working with pollers in JeroMQ.

Pollers are constructed by calling ZContext.createPoller. This is essential because it registers the poller with the context, so that when the context is closed, the poller and selector resources are cleaned up properly.

org.zeromq.ZPoller

ZPoller is a work-in-progress rewrite of the polling API.

If you use ZPoller, please update these docs with more information!

See also