Class BlockingQueueConsumer
public class BlockingQueueConsumer
- Inheritance
-
BlockingQueueConsumer
- Inherited Members
Constructors
BlockingQueueConsumer(IConnectionFactory, IMessageHeadersConverter, ActiveObjectCounter<BlockingQueueConsumer>, AcknowledgeMode, bool, ushort, ILoggerFactory, params string[])
public BlockingQueueConsumer(IConnectionFactory connectionFactory, IMessageHeadersConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeMode acknowledgeMode, bool transactional, ushort prefetchCount, ILoggerFactory loggerFactory, params string[] queues)
Parameters
connectionFactory
IConnectionFactorymessagePropertiesConverter
IMessageHeadersConverteractiveObjectCounter
ActiveObjectCounter<BlockingQueueConsumer>acknowledgeMode
AcknowledgeModetransactional
boolprefetchCount
ushortloggerFactory
ILoggerFactoryqueues
string[]
BlockingQueueConsumer(IConnectionFactory, IMessageHeadersConverter, ActiveObjectCounter<BlockingQueueConsumer>, AcknowledgeMode, bool, ushort, bool, ILoggerFactory, params string[])
public BlockingQueueConsumer(IConnectionFactory connectionFactory, IMessageHeadersConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeMode acknowledgeMode, bool transactional, ushort prefetchCount, bool defaultRequeueRejected, ILoggerFactory loggerFactory, params string[] queues)
Parameters
connectionFactory
IConnectionFactorymessagePropertiesConverter
IMessageHeadersConverteractiveObjectCounter
ActiveObjectCounter<BlockingQueueConsumer>acknowledgeMode
AcknowledgeModetransactional
boolprefetchCount
ushortdefaultRequeueRejected
boolloggerFactory
ILoggerFactoryqueues
string[]
BlockingQueueConsumer(IConnectionFactory, IMessageHeadersConverter, ActiveObjectCounter<BlockingQueueConsumer>, AcknowledgeMode, bool, ushort, bool, Dictionary<string, object>, ILoggerFactory, params string[])
public BlockingQueueConsumer(IConnectionFactory connectionFactory, IMessageHeadersConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeMode acknowledgeMode, bool transactional, ushort prefetchCount, bool defaultRequeueRejected, Dictionary<string, object> consumerArgs, ILoggerFactory loggerFactory, params string[] queues)
Parameters
connectionFactory
IConnectionFactorymessagePropertiesConverter
IMessageHeadersConverteractiveObjectCounter
ActiveObjectCounter<BlockingQueueConsumer>acknowledgeMode
AcknowledgeModetransactional
boolprefetchCount
ushortdefaultRequeueRejected
boolconsumerArgs
Dictionary<string, object>loggerFactory
ILoggerFactoryqueues
string[]
BlockingQueueConsumer(IConnectionFactory, IMessageHeadersConverter, ActiveObjectCounter<BlockingQueueConsumer>, AcknowledgeMode, bool, ushort, bool, Dictionary<string, object>, bool, ILoggerFactory, params string[])
public BlockingQueueConsumer(IConnectionFactory connectionFactory, IMessageHeadersConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeMode acknowledgeMode, bool transactional, ushort prefetchCount, bool defaultRequeueRejected, Dictionary<string, object> consumerArgs, bool exclusive, ILoggerFactory loggerFactory, params string[] queues)
Parameters
connectionFactory
IConnectionFactorymessagePropertiesConverter
IMessageHeadersConverteractiveObjectCounter
ActiveObjectCounter<BlockingQueueConsumer>acknowledgeMode
AcknowledgeModetransactional
boolprefetchCount
ushortdefaultRequeueRejected
boolconsumerArgs
Dictionary<string, object>exclusive
boolloggerFactory
ILoggerFactoryqueues
string[]
BlockingQueueConsumer(IConnectionFactory, IMessageHeadersConverter, ActiveObjectCounter<BlockingQueueConsumer>, AcknowledgeMode, bool, ushort, bool, Dictionary<string, object>, bool, bool, ILoggerFactory, params string[])
public BlockingQueueConsumer(IConnectionFactory connectionFactory, IMessageHeadersConverter messagePropertiesConverter, ActiveObjectCounter<BlockingQueueConsumer> activeObjectCounter, AcknowledgeMode acknowledgeMode, bool transactional, ushort prefetchCount, bool defaultRequeueRejected, Dictionary<string, object> consumerArgs, bool noLocal, bool exclusive, ILoggerFactory loggerFactory, params string[] queues)
Parameters
connectionFactory
IConnectionFactorymessagePropertiesConverter
IMessageHeadersConverteractiveObjectCounter
ActiveObjectCounter<BlockingQueueConsumer>acknowledgeMode
AcknowledgeModetransactional
boolprefetchCount
ushortdefaultRequeueRejected
boolconsumerArgs
Dictionary<string, object>noLocal
boolexclusive
boolloggerFactory
ILoggerFactoryqueues
string[]
Properties
AbortStarted
public long AbortStarted { get; }
Property Value
AcknowledgeMode
public AcknowledgeMode AcknowledgeMode { get; }
Property Value
ActiveObjectCounter
public ActiveObjectCounter<BlockingQueueConsumer> ActiveObjectCounter { get; }
Property Value
BackOffExecution
public IBackOffExecution BackOffExecution { get; set; }
Property Value
Cancel
public AtomicBoolean Cancel { get; }
Property Value
Cancelled
protected bool Cancelled { get; }
Property Value
Channel
public IModel Channel { get; }
Property Value
- IModel
ConnectionFactory
public IConnectionFactory ConnectionFactory { get; }
Property Value
ConsumerArgs
public Dictionary<string, object> ConsumerArgs { get; }
Property Value
DeclarationRetries
public int DeclarationRetries { get; set; }
Property Value
Declaring
public bool Declaring { get; set; }
Property Value
DefaultRequeueRejected
public bool DefaultRequeueRejected { get; }
Property Value
DeliveryTags
public HashSet<ulong> DeliveryTags { get; }
Property Value
Exclusive
public bool Exclusive { get; }
Property Value
FailedDeclarationRetryInterval
public int FailedDeclarationRetryInterval { get; set; }
Property Value
HasDelivery
protected bool HasDelivery { get; }
Property Value
LastRetryDeclaration
public long LastRetryDeclaration { get; set; }
Property Value
LocallyTransacted
public bool LocallyTransacted { get; set; }
Property Value
Logger
public ILogger<BlockingQueueConsumer> Logger { get; }
Property Value
LoggerFactory
public ILoggerFactory LoggerFactory { get; }
Property Value
MessageHeadersConverter
public IMessageHeadersConverter MessageHeadersConverter { get; set; }
Property Value
MissingQueues
public HashSet<string> MissingQueues { get; }
Property Value
NoLocal
public bool NoLocal { get; }
Property Value
NormalCancel
public bool NormalCancel { get; set; }
Property Value
PrefetchCount
public ushort PrefetchCount { get; }
Property Value
Queue
public BlockingCollection<Delivery> Queue { get; }
Property Value
QueueCount
public int QueueCount { get; }
Property Value
Queues
public List<string> Queues { get; }
Property Value
ResourceHolder
public RabbitResourceHolder ResourceHolder { get; set; }
Property Value
RetryDeclarationInterval
public int RetryDeclarationInterval { get; set; }
Property Value
Shutdown
public ShutdownEventArgs Shutdown { get; }
Property Value
- ShutdownEventArgs
ShutdownTimeout
public int ShutdownTimeout { get; set; }
Property Value
TagStrategy
public IConsumerTagStrategy TagStrategy { get; set; }
Property Value
Transactional
public bool Transactional { get; }
Property Value
Methods
BasicCancel()
protected void BasicCancel()
BasicCancel(bool)
protected void BasicCancel(bool expected)
Parameters
expected
bool
ClearDeliveryTags()
public void ClearDeliveryTags()
CommitIfNecessary(bool)
public bool CommitIfNecessary(bool localTx)
Parameters
localTx
bool
Returns
GetConsumerTags()
public List<string> GetConsumerTags()
Returns
NextMessage()
public IMessage NextMessage()
Returns
NextMessage(int)
public IMessage NextMessage(int timeout)
Parameters
timeout
int
Returns
RollbackOnExceptionIfNecessary(Exception)
public void RollbackOnExceptionIfNecessary(Exception ex)
Parameters
ex
Exception
Start()
public void Start()
Stop()
public void Stop()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.