Class BatchingRabbitTemplate
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
optionsMonitor
IOptionsMonitor<RabbitOptions>connectionFactory
IConnectionFactorymessageConverter
ISmartMessageConverterbatchingStrategy
IBatchingStrategylogger
ILogger
BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions>, IConnectionFactory, IBatchingStrategy, ILogger)
public BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions> optionsMonitor, IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy, ILogger logger = null)
Parameters
optionsMonitor
IOptionsMonitor<RabbitOptions>connectionFactory
IConnectionFactorybatchingStrategy
IBatchingStrategylogger
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
RabbitOptionsconnectionFactory
IConnectionFactorymessageConverter
ISmartMessageConverterbatchingStrategy
IBatchingStrategylogger
ILogger
BatchingRabbitTemplate(RabbitOptions, IConnectionFactory, IBatchingStrategy, ILogger)
public BatchingRabbitTemplate(RabbitOptions options, IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy, ILogger logger = null)
Parameters
options
RabbitOptionsconnectionFactory
IConnectionFactorybatchingStrategy
IBatchingStrategylogger
ILogger
BatchingRabbitTemplate(IConnectionFactory, IBatchingStrategy)
public BatchingRabbitTemplate(IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy)
Parameters
connectionFactory
IConnectionFactorybatchingStrategy
IBatchingStrategy
Methods
Flush()
public void Flush()
FlushAsync(CancellationToken)
public Task FlushAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
Send(string, string, IMessage, CorrelationData)
public override void Send(string exchange, string routingKey, IMessage message, CorrelationData correlationData)
Parameters
exchange
stringroutingKey
stringmessage
IMessagecorrelationData
CorrelationData