Class DefaultAffinity
DefaultAffinity is the default implementation of the IAffinity interface.
public class DefaultAffinity : IAffinity
- Inheritance
-
DefaultAffinity
- Implements
- Inherited Members
Constructors
DefaultAffinity(string, Operation, uint)
public DefaultAffinity(string queue, Operation operation, uint tentatives = 10)
Parameters
Methods
Attempts()
Attempts to find the node that has the queue for the given operation before giving up and returning null.
public uint Attempts()
Returns
Operation()
Operation to apply the affinity to. It can be either publish or consume.
public Operation Operation()
Returns
Queue()
Queue where to apply the affinity. T The connection will try to find the node that has this queue for the given operation.
public string Queue()