Class BatchingRabbitTemplate
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class BatchingRabbitTemplate : RabbitTemplate, IMessageSendingOperations<RabbitDestination>, IMessageReceivingOperations<RabbitDestination>, IMessageRequestReplyOperations<RabbitDestination>, IRabbitTemplate, IServiceNameAware, IMessageListener, IListenerContainerAware, IPublisherCallbackChannel.IListener, IDisposable
- Inheritance
-
BatchingRabbitTemplate
- Implements
- Inherited Members
-
RabbitTemplate.ConvertAndSendAsync(string, string, object, IMessagePostProcessor, CancellationToken)
Constructors
BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions>, IConnectionFactory, ISmartMessageConverter, IBatchingStrategy, ILogger)
public BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions> optionsMonitor, IConnectionFactory connectionFactory, ISmartMessageConverter messageConverter, IBatchingStrategy batchingStrategy, ILogger logger = null)
Parameters
optionsMonitorIOptionsMonitor<RabbitOptions>connectionFactoryIConnectionFactorymessageConverterISmartMessageConverterbatchingStrategyIBatchingStrategyloggerILogger
BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions>, IConnectionFactory, IBatchingStrategy, ILogger)
public BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions> optionsMonitor, IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy, ILogger logger = null)
Parameters
optionsMonitorIOptionsMonitor<RabbitOptions>connectionFactoryIConnectionFactorybatchingStrategyIBatchingStrategyloggerILogger
BatchingRabbitTemplate(IBatchingStrategy)
public BatchingRabbitTemplate(IBatchingStrategy batchingStrategy)
Parameters
batchingStrategyIBatchingStrategy
BatchingRabbitTemplate(RabbitOptions, IConnectionFactory, ISmartMessageConverter, IBatchingStrategy, ILogger)
public BatchingRabbitTemplate(RabbitOptions options, IConnectionFactory connectionFactory, ISmartMessageConverter messageConverter, IBatchingStrategy batchingStrategy, ILogger logger = null)
Parameters
optionsRabbitOptionsconnectionFactoryIConnectionFactorymessageConverterISmartMessageConverterbatchingStrategyIBatchingStrategyloggerILogger
BatchingRabbitTemplate(RabbitOptions, IConnectionFactory, IBatchingStrategy, ILogger)
public BatchingRabbitTemplate(RabbitOptions options, IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy, ILogger logger = null)
Parameters
optionsRabbitOptionsconnectionFactoryIConnectionFactorybatchingStrategyIBatchingStrategyloggerILogger
BatchingRabbitTemplate(IConnectionFactory, IBatchingStrategy)
public BatchingRabbitTemplate(IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy)
Parameters
connectionFactoryIConnectionFactorybatchingStrategyIBatchingStrategy
Methods
Flush()
public void Flush()
FlushAsync(CancellationToken)
public Task FlushAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken
Returns
Send(string, string, IMessage, CorrelationData)
public override void Send(string exchange, string routingKey, IMessage message, CorrelationData correlationData)
Parameters
exchangestringroutingKeystringmessageIMessagecorrelationDataCorrelationData