zeromq / jeromq

JeroMQ is a pure Java implementation of the ZeroMQ messaging library, offering high-performance asynchronous messaging for distributed or concurrent applications.
https://zeromq.org
Mozilla Public License 2.0
2.36k stars 481 forks source link

Ctx can now be provided a thread factory #942

Closed fbacchella closed 1 year ago

fbacchella commented 1 year ago

Ctx can now be provided a thread factory, that can used to tweaks thr…eads.

The main purpose of this is to be able to bind thread to CPU using external libraries like https://github.com/OpenHFT/Java-Thread-Affinity.

The idea was suggested by issue #910

Also adding a check that prevent modifications of some settings once they have been used by Ctx initialisation.