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
context
IApplicationContextheadersToEmbed
string[]provisioningProvider
IProvisioningProviderlogger
ILogger
AbstractPollableMessageSourceBinder(IApplicationContext, string[], IProvisioningProvider, IListenerContainerCustomizer, IMessageSourceCustomizer, ILogger)
protected AbstractPollableMessageSourceBinder(IApplicationContext context, string[] headersToEmbed, IProvisioningProvider provisioningProvider, IListenerContainerCustomizer containerCustomizer, IMessageSourceCustomizer sourceCustomizer, ILogger logger)
Parameters
context
IApplicationContextheadersToEmbed
string[]provisioningProvider
IProvisioningProvidercontainerCustomizer
IListenerContainerCustomizersourceCustomizer
IMessageSourceCustomizerlogger
ILogger
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
name
stringthe logical identity of the message source
group
stringthe consumer group to which this consumer belongs
inboundTarget
IPollableSource<IMessageHandler>the application interface to be bound as a consumer
consumerOptions
IConsumerOptionsthe 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
name
stringthe logical identity of the message source
group
stringthe consumer group to which this consumer belongs
inboundTarget
objectthe application interface to be bound as a consumer
consumerOptions
IConsumerOptionsthe 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
name
stringthe logical identity of the message outbound target
outboundTarget
IPollableSource<IMessageHandler>the application interface to be bound as a producer
producerOptions
IProducerOptionsthe 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
name
stringgroup
stringdestination
IConsumerDestinationconsumerOptions
IConsumerOptions
Returns
GetPolledConsumerRecoveryCallback(ErrorInfrastructure, IConsumerOptions)
protected virtual IRecoveryCallback GetPolledConsumerRecoveryCallback(AbstractMessageChannelBinder.ErrorInfrastructure errorInfrastructure, IConsumerOptions options)
Parameters
errorInfrastructure
AbstractMessageChannelBinder.ErrorInfrastructureoptions
IConsumerOptions
Returns
PostProcessPollableSource(DefaultPollableMessageSource)
protected virtual void PostProcessPollableSource(DefaultPollableMessageSource bindingTarget)
Parameters
bindingTarget
DefaultPollableMessageSource