Class RedeliveryPolicy
A policy used to customize exactly how you want the redelivery to work.
Inheritance
RedeliveryPolicy
Implements
IRedeliveryPolicy
Assembly: CodersRealm.NmsAmqpClient.dll
Syntax
public abstract class RedeliveryPolicy : IRedeliveryPolicy, ICloneable
Properties
BackOffMultiplier
Declaration
public virtual int BackOffMultiplier { get; set; }
Property Value
CollisionAvoidancePercent
Declaration
public virtual int CollisionAvoidancePercent { get; set; }
Property Value
InitialRedeliveryDelay
Declaration
public virtual int InitialRedeliveryDelay { get; set; }
Property Value
MaximumRedeliveries
Declaration
public virtual int MaximumRedeliveries { get; set; }
Property Value
NextBool
Declaration
protected static bool NextBool { get; }
Property Value
| Type |
Description |
| bool |
true if [next bool]; otherwise, false.
|
RandomNumberGenerator
Gets the random number generator.
Declaration
protected static Random RandomNumberGenerator { get; }
Property Value
| Type |
Description |
| Random |
The random number generator.
|
UseCollisionAvoidance
Declaration
public virtual bool UseCollisionAvoidance { get; set; }
Property Value
UseExponentialBackOff
Declaration
public virtual bool UseExponentialBackOff { get; set; }
Property Value
Methods
Clone()
Clone this object and return a new instance that the caller now owns.
Declaration
Returns
GetOutcome(IDestination)
Declaration
public abstract int GetOutcome(IDestination destination)
Parameters
| Type |
Name |
Description |
| IDestination |
destination |
|
Returns
RedeliveryDelay(int)
Declaration
public virtual int RedeliveryDelay(int redeliveredCounter)
Parameters
| Type |
Name |
Description |
| int |
redeliveredCounter |
|
Returns
Implements
Apache.NMS.IRedeliveryPolicy