Class DirectReplyToMessageListenerContainer
public class DirectReplyToMessageListenerContainer : DirectMessageListenerContainer, IMessageListenerContainer, ISmartLifecycle, ILifecycle, IPhased, IDisposable, IServiceNameAware
- Inheritance
-
DirectReplyToMessageListenerContainer
- Implements
- Inherited Members
Constructors
DirectReplyToMessageListenerContainer(IApplicationContext, IConnectionFactory, string, ILoggerFactory)
public DirectReplyToMessageListenerContainer(IApplicationContext applicationContext, IConnectionFactory connectionFactory, string name = null, ILoggerFactory loggerFactory = null)
Parameters
applicationContext
IApplicationContextconnectionFactory
IConnectionFactoryname
stringloggerFactory
ILoggerFactory
DirectReplyToMessageListenerContainer(IApplicationContext, string, ILoggerFactory)
public DirectReplyToMessageListenerContainer(IApplicationContext applicationContext, string name = null, ILoggerFactory loggerFactory = null)
Parameters
applicationContext
IApplicationContextname
stringloggerFactory
ILoggerFactory
DirectReplyToMessageListenerContainer(string, ILoggerFactory)
public DirectReplyToMessageListenerContainer(string name = null, ILoggerFactory loggerFactory = null)
Parameters
name
stringloggerFactory
ILoggerFactory
Properties
ConsumersPerQueue
public override int ConsumersPerQueue { get; set; }
Property Value
MessageListener
public override IMessageListener MessageListener { get; set; }
Property Value
MonitorInterval
public override long MonitorInterval { get; set; }
Property Value
Methods
AddQueueNames(params string[])
public override void AddQueueNames(params string[] queueName)
Parameters
queueName
string[]
ConsumerRemoved(SimpleConsumer)
protected override void ConsumerRemoved(DirectMessageListenerContainer.SimpleConsumer consumer)
Parameters
DoStart()
protected override void DoStart()
FindIdleConsumer()
protected override int FindIdleConsumer()
Returns
GetChannelHolder()
public DirectReplyToMessageListenerContainer.ChannelHolder GetChannelHolder()
Returns
ProcessMonitorTask()
protected override void ProcessMonitorTask()
ReleaseConsumerFor(ChannelHolder, bool, string)
public void ReleaseConsumerFor(DirectReplyToMessageListenerContainer.ChannelHolder channelHolder, bool cancelConsumer, string message)
Parameters
channelHolder
DirectReplyToMessageListenerContainer.ChannelHoldercancelConsumer
boolmessage
string
RemoveQueueNames(params string[])
public override bool RemoveQueueNames(params string[] queueName)
Parameters
queueName
string[]
Returns
SetQueueNames(params string[])
public override void SetQueueNames(params string[] queueName)
Parameters
queueName
string[]