Class BatchingRabbitTemplate
Inheritance
System.Object
BatchingRabbitTemplate
Implements
IServiceNameAware
IDisposable
Inherited Members
RabbitTemplate.HandleReturn(Int32, String, String, String, RabbitMQ.Client.IBasicProperties, Byte[])
RabbitTemplate.ConvertAndSendAsync(String, String, Object, IMessagePostProcessor, CancellationToken)
Steeltoe.Messaging.Core.AbstractMessagingTemplate<Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination>.ConvertSendAndReceiveAsync<T>(Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination, System.Object, IDictionary<, >, CancellationToken)
Steeltoe.Messaging.Core.AbstractMessagingTemplate<Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination>.ConvertSendAndReceiveAsync<T>(Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination, System.Object, IDictionary<, >, Steeltoe.Messaging.Core.IMessagePostProcessor, CancellationToken)
Steeltoe.Messaging.Core.AbstractMessagingTemplate<Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination>.ConvertSendAndReceive<T>(Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination, System.Object, IDictionary<, >)
AbstractMessagingTemplate<RabbitDestination>.ConvertSendAndReceive<T>(Object, IMessagePostProcessor)
Steeltoe.Messaging.Core.AbstractMessagingTemplate<Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination>.ConvertSendAndReceive<T>(Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination, System.Object, IDictionary<, >, Steeltoe.Messaging.Core.IMessagePostProcessor)
Steeltoe.Messaging.Core.AbstractMessageSendingTemplate<Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination>.ConvertAndSendAsync(Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination, System.Object, IDictionary<, >, CancellationToken)
Steeltoe.Messaging.Core.AbstractMessageSendingTemplate<Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination>.ConvertAndSendAsync(Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination, System.Object, IDictionary<, >, Steeltoe.Messaging.Core.IMessagePostProcessor, CancellationToken)
Steeltoe.Messaging.Core.AbstractMessageSendingTemplate<Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination>.ConvertAndSend(Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination, System.Object, IDictionary<, >)
Steeltoe.Messaging.Core.AbstractMessageSendingTemplate<Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination>.ConvertAndSend(Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination, System.Object, IDictionary<, >, Steeltoe.Messaging.Core.IMessagePostProcessor)
Steeltoe.Messaging.Core.AbstractMessageSendingTemplate<Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination>.DoConvert(System.Object, IDictionary<, >, Steeltoe.Messaging.Core.IMessagePostProcessor)
Steeltoe.Messaging.Core.AbstractMessageSendingTemplate<Steeltoe.Messaging.RabbitMQ.Core.RabbitDestination>.ProcessHeadersToSend(IDictionary<, >)
Namespace: Steeltoe.Messaging.RabbitMQ.Core
Assembly: Steeltoe.Messaging.RabbitMQ.dll
Syntax
public class BatchingRabbitTemplate : RabbitTemplate, IRabbitTemplate, IMessageListener, IListenerContainerAware, IPublisherCallbackChannel.IListener
Constructors
| Edit this page View SourceBatchingRabbitTemplate(IOptionsMonitor<RabbitOptions>, IConnectionFactory, ISmartMessageConverter, IBatchingStrategy, ILogger)
Declaration
public BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions> optionsMonitor, IConnectionFactory connectionFactory, ISmartMessageConverter messageConverter, IBatchingStrategy batchingStrategy, ILogger logger = null)
Parameters
Type | Name | Description |
---|---|---|
IOptionsMonitor<RabbitOptions> | optionsMonitor | |
IConnectionFactory | connectionFactory | |
ISmartMessageConverter | messageConverter | |
IBatchingStrategy | batchingStrategy | |
ILogger | logger |
BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions>, IConnectionFactory, IBatchingStrategy, ILogger)
Declaration
public BatchingRabbitTemplate(IOptionsMonitor<RabbitOptions> optionsMonitor, IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy, ILogger logger = null)
Parameters
Type | Name | Description |
---|---|---|
IOptionsMonitor<RabbitOptions> | optionsMonitor | |
IConnectionFactory | connectionFactory | |
IBatchingStrategy | batchingStrategy | |
ILogger | logger |
BatchingRabbitTemplate(IBatchingStrategy)
Declaration
public BatchingRabbitTemplate(IBatchingStrategy batchingStrategy)
Parameters
Type | Name | Description |
---|---|---|
IBatchingStrategy | batchingStrategy |
BatchingRabbitTemplate(RabbitOptions, IConnectionFactory, ISmartMessageConverter, IBatchingStrategy, ILogger)
Declaration
public BatchingRabbitTemplate(RabbitOptions options, IConnectionFactory connectionFactory, ISmartMessageConverter messageConverter, IBatchingStrategy batchingStrategy, ILogger logger = null)
Parameters
Type | Name | Description |
---|---|---|
RabbitOptions | options | |
IConnectionFactory | connectionFactory | |
ISmartMessageConverter | messageConverter | |
IBatchingStrategy | batchingStrategy | |
ILogger | logger |
BatchingRabbitTemplate(RabbitOptions, IConnectionFactory, IBatchingStrategy, ILogger)
Declaration
public BatchingRabbitTemplate(RabbitOptions options, IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy, ILogger logger = null)
Parameters
Type | Name | Description |
---|---|---|
RabbitOptions | options | |
IConnectionFactory | connectionFactory | |
IBatchingStrategy | batchingStrategy | |
ILogger | logger |
BatchingRabbitTemplate(IConnectionFactory, IBatchingStrategy)
Declaration
public BatchingRabbitTemplate(IConnectionFactory connectionFactory, IBatchingStrategy batchingStrategy)
Parameters
Type | Name | Description |
---|---|---|
IConnectionFactory | connectionFactory | |
IBatchingStrategy | batchingStrategy |
Methods
| Edit this page View SourceFlush()
Declaration
public void Flush()
FlushAsync(CancellationToken)
Declaration
public async Task FlushAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
Send(String, String, IMessage, CorrelationData)
Declaration
public override void Send(string exchange, string routingKey, IMessage message, CorrelationData correlationData)
Parameters
Type | Name | Description |
---|---|---|
System.String | exchange | |
System.String | routingKey | |
IMessage | message | |
CorrelationData | correlationData |
Overrides
Implements
IServiceNameAware
IDisposable