Class AbstractMessageChannelBinder
public abstract class AbstractMessageChannelBinder : AbstractBinder<IMessageChannel>, IBinder<IMessageChannel>, IBinder, IServiceNameAware, IDisposable
- Inheritance
-
AbstractMessageChannelBinder
- Implements
- Derived
- Inherited Members
Constructors
AbstractMessageChannelBinder(IApplicationContext, string[], IProvisioningProvider, ILogger)
protected AbstractMessageChannelBinder(IApplicationContext context, string[] headersToEmbed, IProvisioningProvider provisioningProvider, ILogger logger)
Parameters
context
IApplicationContextheadersToEmbed
string[]provisioningProvider
IProvisioningProviderlogger
ILogger
AbstractMessageChannelBinder(IApplicationContext, string[], IProvisioningProvider, IListenerContainerCustomizer, IMessageSourceCustomizer, ILogger)
protected AbstractMessageChannelBinder(IApplicationContext context, string[] headersToEmbed, IProvisioningProvider provisioningProvider, IListenerContainerCustomizer containerCustomizer, IMessageSourceCustomizer sourceCustomizer, ILogger logger)
Parameters
context
IApplicationContextheadersToEmbed
string[]provisioningProvider
IProvisioningProvidercontainerCustomizer
IListenerContainerCustomizersourceCustomizer
IMessageSourceCustomizerlogger
ILogger
Fields
_embeddedHeadersChannelInterceptor
protected readonly AbstractMessageChannelBinder.EmbeddedHeadersChannelInterceptor _embeddedHeadersChannelInterceptor
Field Value
_headersToEmbed
protected readonly string[] _headersToEmbed
Field Value
- string[]
_producerBindingExist
protected bool _producerBindingExist
Field Value
_provisioningProvider
protected readonly IProvisioningProvider _provisioningProvider
Field Value
Properties
ListenerContainerCustomizer
protected virtual IListenerContainerCustomizer ListenerContainerCustomizer { get; }
Property Value
MessageSourceCustomizer
protected virtual IMessageSourceCustomizer MessageSourceCustomizer { get; }
Property Value
TargetType
Gets the target type this binder can bind to
public override Type TargetType { get; }
Property Value
Methods
AfterUnbindConsumer(IConsumerDestination, string, IConsumerOptions)
protected virtual void AfterUnbindConsumer(IConsumerDestination destination, string group, IConsumerOptions consumerOptions)
Parameters
destination
IConsumerDestinationgroup
stringconsumerOptions
IConsumerOptions
AfterUnbindProducer(IProducerDestination, IProducerOptions)
protected virtual void AfterUnbindProducer(IProducerDestination destination, IProducerOptions producerOptions)
Parameters
destination
IProducerDestinationproducerOptions
IProducerOptions
CreateConsumerEndpoint(IConsumerDestination, string, IConsumerOptions)
protected abstract IMessageProducer CreateConsumerEndpoint(IConsumerDestination destination, string group, IConsumerOptions consumerOptions)
Parameters
destination
IConsumerDestinationgroup
stringconsumerOptions
IConsumerOptions
Returns
CreateProducerMessageHandler(IProducerDestination, IProducerOptions, IMessageChannel)
protected abstract IMessageHandler CreateProducerMessageHandler(IProducerDestination destination, IProducerOptions producerProperties, IMessageChannel errorChannel)
Parameters
destination
IProducerDestinationproducerProperties
IProducerOptionserrorChannel
IMessageChannel
Returns
CreateProducerMessageHandler(IProducerDestination, IProducerOptions, IMessageChannel, IMessageChannel)
protected virtual IMessageHandler CreateProducerMessageHandler(IProducerDestination destination, IProducerOptions producerProperties, IMessageChannel channel, IMessageChannel errorChannel)
Parameters
destination
IProducerDestinationproducerProperties
IProducerOptionschannel
IMessageChannelerrorChannel
IMessageChannel
Returns
DoBindConsumer(string, string, IMessageChannel, IConsumerOptions)
protected override IBinding DoBindConsumer(string name, string group, IMessageChannel inputTarget, IConsumerOptions consumerOptions)
Parameters
name
stringgroup
stringinputTarget
IMessageChannelconsumerOptions
IConsumerOptions
Returns
DoBindProducer(string, IMessageChannel, IProducerOptions)
protected override IBinding DoBindProducer(string name, IMessageChannel outboundTarget, IProducerOptions producerOptions)
Parameters
name
stringoutboundTarget
IMessageChannelproducerOptions
IProducerOptions
Returns
GetDefaultErrorMessageHandler(ILastSubscriberAwareChannel, bool)
protected virtual IMessageHandler GetDefaultErrorMessageHandler(ILastSubscriberAwareChannel errorChannel, bool defaultErrorChannelPresent)
Parameters
errorChannel
ILastSubscriberAwareChanneldefaultErrorChannelPresent
bool
Returns
GetErrorBridgeName(IConsumerDestination, string, IConsumerOptions)
protected virtual string GetErrorBridgeName(IConsumerDestination destination, string group, IConsumerOptions consumerOptions)
Parameters
destination
IConsumerDestinationgroup
stringconsumerOptions
IConsumerOptions
Returns
GetErrorBridgeName(IProducerDestination)
protected virtual string GetErrorBridgeName(IProducerDestination destination)
Parameters
destination
IProducerDestination
Returns
GetErrorMessageHandler(IConsumerDestination, string, IConsumerOptions)
protected virtual IMessageHandler GetErrorMessageHandler(IConsumerDestination destination, string group, IConsumerOptions consumerOptions)
Parameters
destination
IConsumerDestinationgroup
stringconsumerOptions
IConsumerOptions
Returns
GetErrorMessageHandlerName(IConsumerDestination, string, IConsumerOptions)
protected virtual string GetErrorMessageHandlerName(IConsumerDestination destination, string group, IConsumerOptions consumerOptions)
Parameters
destination
IConsumerDestinationgroup
stringconsumerOptions
IConsumerOptions
Returns
GetErrorMessageStrategy()
protected virtual IErrorMessageStrategy GetErrorMessageStrategy()
Returns
GetErrorRecovererName(IConsumerDestination, string, IConsumerOptions)
protected virtual string GetErrorRecovererName(IConsumerDestination destination, string group, IConsumerOptions consumerOptions)
Parameters
destination
IConsumerDestinationgroup
stringconsumerOptions
IConsumerOptions
Returns
GetErrorsBaseName(IConsumerDestination, string, IConsumerOptions)
protected virtual string GetErrorsBaseName(IConsumerDestination destination, string group, IConsumerOptions consumerOptions)
Parameters
destination
IConsumerDestinationgroup
stringconsumerOptions
IConsumerOptions
Returns
GetErrorsBaseName(IProducerDestination)
protected virtual string GetErrorsBaseName(IProducerDestination destination)
Parameters
destination
IProducerDestination
Returns
GetPolledConsumerErrorMessageHandler(IConsumerDestination, string, IConsumerOptions)
protected virtual IMessageHandler GetPolledConsumerErrorMessageHandler(IConsumerDestination destination, string group, IConsumerOptions consumerProperties)
Parameters
destination
IConsumerDestinationgroup
stringconsumerProperties
IConsumerOptions
Returns
PostProcessOutputChannel(IMessageChannel, IProducerOptions)
protected virtual void PostProcessOutputChannel(IMessageChannel outputChannel, IProducerOptions producerOptions)
Parameters
outputChannel
IMessageChannelproducerOptions
IProducerOptions
RegisterErrorInfrastructure(IConsumerDestination, string, IConsumerOptions, ILogger)
protected virtual AbstractMessageChannelBinder.ErrorInfrastructure RegisterErrorInfrastructure(IConsumerDestination destination, string group, IConsumerOptions consumerOptions, ILogger logger)
Parameters
destination
IConsumerDestinationgroup
stringconsumerOptions
IConsumerOptionslogger
ILogger
Returns
RegisterErrorInfrastructure(IConsumerDestination, string, IConsumerOptions, bool, ILogger)
protected virtual AbstractMessageChannelBinder.ErrorInfrastructure RegisterErrorInfrastructure(IConsumerDestination destination, string group, IConsumerOptions consumerOptions, bool polled, ILogger logger)
Parameters
destination
IConsumerDestinationgroup
stringconsumerOptions
IConsumerOptionspolled
boollogger
ILogger
Returns
UseNativeEncoding(IProducerOptions)
protected virtual bool UseNativeEncoding(IProducerOptions producerOptions)
Parameters
producerOptions
IProducerOptions