Table of Contents

Interface IAffinity

Namespace
RabbitMQ.AMQP.Client
Assembly
RabbitMQ.AMQP.Client.dll

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

uint

Operation()

Operation to apply the affinity to. It can be either publish or consume.

Operation Operation()

Returns

Operation

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()

Returns

string