Table of Contents

Class DirectReplyToMessageListenerContainer

Namespace
Steeltoe.Messaging.RabbitMQ.Listener
Assembly
Steeltoe.Messaging.RabbitMQ.dll
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 IApplicationContext
connectionFactory IConnectionFactory
name string
loggerFactory ILoggerFactory

DirectReplyToMessageListenerContainer(IApplicationContext, string, ILoggerFactory)

public DirectReplyToMessageListenerContainer(IApplicationContext applicationContext, string name = null, ILoggerFactory loggerFactory = null)

Parameters

applicationContext IApplicationContext
name string
loggerFactory ILoggerFactory

DirectReplyToMessageListenerContainer(string, ILoggerFactory)

public DirectReplyToMessageListenerContainer(string name = null, ILoggerFactory loggerFactory = null)

Parameters

name string
loggerFactory ILoggerFactory

Properties

ConsumersPerQueue

public override int ConsumersPerQueue { get; set; }

Property Value

int

MessageListener

public override IMessageListener MessageListener { get; set; }

Property Value

IMessageListener

MonitorInterval

public override long MonitorInterval { get; set; }

Property Value

long

Methods

AddQueueNames(params string[])

public override void AddQueueNames(params string[] queueName)

Parameters

queueName string[]

ConsumerRemoved(SimpleConsumer)

protected override void ConsumerRemoved(DirectMessageListenerContainer.SimpleConsumer consumer)

Parameters

consumer DirectMessageListenerContainer.SimpleConsumer

DoStart()

protected override void DoStart()

FindIdleConsumer()

protected override int FindIdleConsumer()

Returns

int

GetChannelHolder()

public DirectReplyToMessageListenerContainer.ChannelHolder GetChannelHolder()

Returns

DirectReplyToMessageListenerContainer.ChannelHolder

ProcessMonitorTask()

protected override void ProcessMonitorTask()

ReleaseConsumerFor(ChannelHolder, bool, string)

public void ReleaseConsumerFor(DirectReplyToMessageListenerContainer.ChannelHolder channelHolder, bool cancelConsumer, string message)

Parameters

channelHolder DirectReplyToMessageListenerContainer.ChannelHolder
cancelConsumer bool
message string

RemoveQueueNames(params string[])

public override bool RemoveQueueNames(params string[] queueName)

Parameters

queueName string[]

Returns

bool

SetQueueNames(params string[])

public override void SetQueueNames(params string[] queueName)

Parameters

queueName string[]