Class Affinity

  extended by akka.zeromq.Affinity
All Implemented Interfaces:
Request, SocketOption, java.io.Serializable, scala.Equals, scala.Product

public class Affinity
extends java.lang.Object
implements SocketOption, scala.Product, scala.Serializable

The Affinity option shall set the I/O thread affinity for newly created connections on the specified socket.

Affinity determines which threads from the ØMQ I/O thread pool associated with the socket's context shall handle newly created connections. A value of zero specifies no affinity, meaning that work shall be distributed fairly among all ØMQ I/O threads in the thread pool. For non-zero values, the lowest bit corresponds to thread 1, second lowest bit to thread 2 and so on. For example, a value of 3 specifies that subsequent connections on socket shall be handled exclusively by I/O threads 1 and 2.

See Also:
Serialized Form

Constructor Summary
Affinity(long value)
Method Summary
 long value()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
Methods inherited from interface scala.Equals
canEqual, equals

Constructor Detail


public Affinity(long value)
Method Detail


public long value()