Table of Contents

Class BatchingRabbitTemplate

Namespace
Steeltoe.Messaging.RabbitMQ.Core
Assembly
Steeltoe.Messaging.RabbitMQ.dll
public class BatchingRabbitTemplate : RabbitTemplate, IMessageSendingOperations<RabbitDestination>, IMessageReceivingOperations<RabbitDestination>, IMessageRequestReplyOperations<RabbitDestination>, IRabbitTemplate, IServiceNameAware, IMessageListener, IListenerContainerAware, IPublisherCallbackChannel.IListener, IDisposable
Inheritance
BatchingRabbitTemplate
Implements
Inherited Members

Constructors

BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions>, IConnectionFactory, ISmartMessageConverter, IBatchingStrategy, ILogger)

public BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions> optionsMonitor, IConnectionFactory connectionFactory, ISmartMessageConverter messageConverter, IBatchingStrategy batchingStrategy, ILogger logger = null)

Parameters

optionsMonitor IOptionsMonitor<RabbitOptions>
connectionFactory IConnectionFactory
messageConverter ISmartMessageConverter
batchingStrategy IBatchingStrategy
logger ILogger

BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions>, IConnectionFactory, IBatchingStrategy, ILogger)

public BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions> optionsMonitor, IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy, ILogger logger = null)

Parameters

optionsMonitor IOptionsMonitor<RabbitOptions>
connectionFactory IConnectionFactory
batchingStrategy IBatchingStrategy
logger ILogger

BatchingRabbitTemplate(IBatchingStrategy)

public BatchingRabbitTemplate(IBatchingStrategy batchingStrategy)

Parameters

batchingStrategy IBatchingStrategy

BatchingRabbitTemplate(RabbitOptions, IConnectionFactory, ISmartMessageConverter, IBatchingStrategy, ILogger)

public BatchingRabbitTemplate(RabbitOptions options, IConnectionFactory connectionFactory, ISmartMessageConverter messageConverter, IBatchingStrategy batchingStrategy, ILogger logger = null)

Parameters

options RabbitOptions
connectionFactory IConnectionFactory
messageConverter ISmartMessageConverter
batchingStrategy IBatchingStrategy
logger ILogger

BatchingRabbitTemplate(RabbitOptions, IConnectionFactory, IBatchingStrategy, ILogger)

public BatchingRabbitTemplate(RabbitOptions options, IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy, ILogger logger = null)

Parameters

options RabbitOptions
connectionFactory IConnectionFactory
batchingStrategy IBatchingStrategy
logger ILogger

BatchingRabbitTemplate(IConnectionFactory, IBatchingStrategy)

public BatchingRabbitTemplate(IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy)

Parameters

connectionFactory IConnectionFactory
batchingStrategy IBatchingStrategy

Methods

Flush()

public void Flush()

FlushAsync(CancellationToken)

public Task FlushAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

Send(string, string, IMessage, CorrelationData)

public override void Send(string exchange, string routingKey, IMessage message, CorrelationData correlationData)

Parameters

exchange string
routingKey string
message IMessage
correlationData CorrelationData