Interface IAffinity
IAffinity the interface to define node affinity for a connection. It is used to find the node that has the queue for the given operation.
public interface IAffinity
Methods
Attempts()
Attempts to find the node that has the queue for the given operation before giving up and returning null.
uint Attempts()
Returns
Operation()
Operation to apply the affinity to. It can be either publish or consume.
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.
string Queue()