Class AbstractPollableMessageSourceBinder
public abstract class AbstractPollableMessageSourceBinder : AbstractMessageChannelBinder, IBinder<IMessageChannel>, IPollableConsumerBinder<IMessageHandler>, IBinder<IPollableSource<IMessageHandler>>, IBinder, IServiceNameAware, IDisposable, IPollableConsumerBinder
- Inheritance
-
AbstractPollableMessageSourceBinder
- Implements
- Derived
- Inherited Members
Constructors
AbstractPollableMessageSourceBinder(IApplicationContext, string[], IProvisioningProvider, ILogger)
protected AbstractPollableMessageSourceBinder(IApplicationContext context, string[] headersToEmbed, IProvisioningProvider provisioningProvider, ILogger logger)
Parameters
contextIApplicationContextheadersToEmbedstring[]provisioningProviderIProvisioningProviderloggerILogger
AbstractPollableMessageSourceBinder(IApplicationContext, string[], IProvisioningProvider, IListenerContainerCustomizer, IMessageSourceCustomizer, ILogger)
protected AbstractPollableMessageSourceBinder(IApplicationContext context, string[] headersToEmbed, IProvisioningProvider provisioningProvider, IListenerContainerCustomizer containerCustomizer, IMessageSourceCustomizer sourceCustomizer, ILogger logger)
Parameters
contextIApplicationContextheadersToEmbedstring[]provisioningProviderIProvisioningProvidercontainerCustomizerIListenerContainerCustomizersourceCustomizerIMessageSourceCustomizerloggerILogger
Methods
BindConsumer(string, string, IPollableSource<IMessageHandler>, IConsumerOptions)
Bind the target component as a message consumer to the logical entity identified by the name.
public virtual IBinding BindConsumer(string name, string group, IPollableSource<IMessageHandler> inboundTarget, IConsumerOptions consumerOptions)
Parameters
namestringthe logical identity of the message source
groupstringthe consumer group to which this consumer belongs
inboundTargetIPollableSource<IMessageHandler>the application interface to be bound as a consumer
consumerOptionsIConsumerOptionsthe consumer options
Returns
- IBinding
the setup binding
BindConsumer(string, string, object, IConsumerOptions)
Bind the target component as a message consumer to the logical entity identified by the name.
public override IBinding BindConsumer(string name, string group, object inboundTarget, IConsumerOptions consumerOptions)
Parameters
namestringthe logical identity of the message source
groupstringthe consumer group to which this consumer belongs
inboundTargetobjectthe application interface to be bound as a consumer
consumerOptionsIConsumerOptionsthe consumer options
Returns
- IBinding
the setup binding
BindProducer(string, IPollableSource<IMessageHandler>, IProducerOptions)
Bind the target component as a message producer to the logical entity identified by the name.
public virtual IBinding BindProducer(string name, IPollableSource<IMessageHandler> outboundTarget, IProducerOptions producerOptions)
Parameters
namestringthe logical identity of the message outbound target
outboundTargetIPollableSource<IMessageHandler>the application interface to be bound as a producer
producerOptionsIProducerOptionsthe producer options
Returns
- IBinding
the setup binding
CreatePolledConsumerResources(string, string, IConsumerDestination, IConsumerOptions)
protected virtual AbstractMessageChannelBinder.PolledConsumerResources CreatePolledConsumerResources(string name, string group, IConsumerDestination destination, IConsumerOptions consumerOptions)
Parameters
namestringgroupstringdestinationIConsumerDestinationconsumerOptionsIConsumerOptions
Returns
GetPolledConsumerRecoveryCallback(ErrorInfrastructure, IConsumerOptions)
protected virtual IRecoveryCallback GetPolledConsumerRecoveryCallback(AbstractMessageChannelBinder.ErrorInfrastructure errorInfrastructure, IConsumerOptions options)
Parameters
errorInfrastructureAbstractMessageChannelBinder.ErrorInfrastructureoptionsIConsumerOptions
Returns
PostProcessPollableSource(DefaultPollableMessageSource)
protected virtual void PostProcessPollableSource(DefaultPollableMessageSource bindingTarget)
Parameters
bindingTargetDefaultPollableMessageSource