Table of Contents

Class DefaultAffinity

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

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

queue string
operation Operation
tentatives uint

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

uint

Operation()

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

public 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.

public string Queue()

Returns

string