public class RedisMessageBus extends MessageBusSupport implements org.springframework.beans.factory.DisposableBean
MessageBus
実装。MessageBusSupport.DirectHandler, MessageBusSupport.PartitioningMetadata, MessageBusSupport.SetBuilder, MessageBusSupport.SharedChannelProvider<T extends org.springframework.messaging.MessageChannel>
MessageBus.Capability
CONSUMER_RETRY_PROPERTIES, CONSUMER_STANDARD_PROPERTIES, defaultBackOffInitialInterval, defaultBackOffMaxInterval, defaultBackOffMultiplier, defaultBatchBufferLimit, defaultBatchingEnabled, defaultBatchSize, defaultBatchTimeout, defaultCompress, defaultConcurrency, defaultDurableSubscription, defaultMaxAttempts, directChannelProvider, evaluationContext, JOB_CHANNEL_TYPE_PREFIX, logger, MEDIATYPES_MEDIATYPE_ALL, P2P_NAMED_CHANNEL_TYPE_PREFIX, PARTITION_HEADER, PRODUCER_BATCHING_ADVANCED_PROPERTIES, PRODUCER_BATCHING_BASIC_PROPERTIES, PRODUCER_PARTITIONING_PROPERTIES, PRODUCER_STANDARD_PROPERTIES, PUBSUB_NAMED_CHANNEL_TYPE_PREFIX, TAP_TYPE_PREFIX
コンストラクターと説明 |
---|
RedisMessageBus(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, org.springframework.integration.codec.Codec codec) |
RedisMessageBus(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, org.springframework.integration.codec.Codec codec, java.lang.String... headersToMap) |
修飾子と型 | メソッドと説明 |
---|---|
void | bindConsumer(java.lang.String name, org.springframework.messaging.MessageChannel moduleInputChannel, java.util.Properties properties) P2P チャネルにメッセージコンシューマーをバインドする |
void | bindProducer(java.lang.String name, org.springframework.messaging.MessageChannel moduleOutputChannel, java.util.Properties properties) メッセージプロデューサーを P2P チャネルにバインドします。 |
void | bindPubSubConsumer(java.lang.String name, org.springframework.messaging.MessageChannel moduleInputChannel, java.util.Properties properties) pub/ サブチャネルにメッセージコンシューマーをバインドする |
void | bindPubSubProducer(java.lang.String name, org.springframework.messaging.MessageChannel moduleOutputChannel, java.util.Properties properties) pub/ サブチャネルにメッセージプロデューサーをバインドします。 |
void | bindReplier(java.lang.String name, org.springframework.messaging.MessageChannel requests, org.springframework.messaging.MessageChannel replies, java.util.Properties properties) リクエスタからのリクエストを処理し、非同期的に応答を送信するコンシューマーをバインドします。 |
void | bindRequestor(java.lang.String name, org.springframework.messaging.MessageChannel requests, org.springframework.messaging.MessageChannel replies, java.util.Properties properties) 非同期応答を期待するプロデューサーをバインドします。 |
void | destroy() |
protected void | onInit() |
addBinding, afterPropertiesSet, applyPrefix, applyPubSub, applyRequests, bindDynamicProducer, bindDynamicPubSubProducer, bindExistingProducerDirectlyIfPossible, bindNewProducerDirectlyIfPossible, buildPartitionRoutingExpression, buildRetryTemplateIfRetryEnabled, constructDLQName, deleteBinding, deleteBindings, deserializePayloadIfNecessary, deserializePayloadIfNecessary, determinePartition, doBindDynamicProducer, doBindDynamicPubSubProducer, doManualAck, getApplicationContext, getBeanFactory, getIdGenerator, isCapable, isNamedChannel, serializePayloadIfNecessary, setApplicationContext, setCodec, setDefaultBackOffInitialInterval, setDefaultBackOffMaxInterval, setDefaultBackOffMultiplier, setDefaultBatchBufferLimit, setDefaultBatchingEnabled, setDefaultBatchSize, setDefaultBatchTimeout, setDefaultCompress, setDefaultConcurrency, setDefaultDurableSubscription, setDefaultMaxAttempts, setIntegrationEvaluationContext, setPartitionSelector, stopBindings, unbindConsumer, unbindConsumers, unbindProducer, unbindProducers, validateConsumerProperties, validateProducerProperties
public RedisMessageBus(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, org.springframework.integration.codec.Codec codec)
public RedisMessageBus(org.springframework.data.redis.connection.RedisConnectionFactory connectionFactory, org.springframework.integration.codec.Codec codec, java.lang.String... headersToMap)
protected void onInit()
MessageBusSupport
の onInit
public void bindConsumer(java.lang.String name, org.springframework.messaging.MessageChannel moduleInputChannel, java.util.Properties properties)
MessageBus
MessageBus
の bindConsumer
name
- メッセージソースの論理的 IDmoduleInputChannel
- コンシューマーとしてのチャネル properties
- バインディングで使用される任意の文字列キー / 値のペア public void bindPubSubConsumer(java.lang.String name, org.springframework.messaging.MessageChannel moduleInputChannel, java.util.Properties properties)
MessageBus
MessageBus
の bindPubSubConsumer
name
- メッセージソースの論理的 IDmoduleInputChannel
- pub/ サブコンシューマーとしてバインドされたチャネル properties
- バインディングで使用される任意の文字列キー / 値のペア public void bindProducer(java.lang.String name, org.springframework.messaging.MessageChannel moduleOutputChannel, java.util.Properties properties)
MessageBus
MessageBus
の bindProducer
name
- メッセージターゲットの論理的アイデンティティ moduleOutputChannel
- プロデューサーとして縛られたチャンネル properties
- バインディングで使用される任意の文字列キー / 値のペア public void bindPubSubProducer(java.lang.String name, org.springframework.messaging.MessageChannel moduleOutputChannel, java.util.Properties properties)
MessageBus
MessageBus
の bindPubSubProducer
name
- メッセージターゲットの論理的アイデンティティ moduleOutputChannel
- プロデューサーとして縛られたチャンネル properties
- バインディングで使用される任意の文字列キー / 値のペア public void bindRequestor(java.lang.String name, org.springframework.messaging.MessageChannel requests, org.springframework.messaging.MessageChannel replies, java.util.Properties properties)
MessageBus
MessageBus
の bindRequestor
name
- リクエスト者の名前。requests
- リクエストチャネル - リクエストを送信します。replies
- 返信チャンネル - 返信を受け取ります。properties
- バインディングで使用される任意の文字列キー / 値のペア。public void bindReplier(java.lang.String name, org.springframework.messaging.MessageChannel requests, org.springframework.messaging.MessageChannel replies, java.util.Properties properties)
MessageBus
MessageBus
の bindReplier
name
- このリプライヤがリクエストを処理するリクエスタの名前。requests
- リクエストチャネル - リクエストを受け取ります。replies
- 返信チャンネル - 返信を送信します。properties
- バインディングで使用される任意の文字列キー / 値のペア。public void destroy()
org.springframework.beans.factory.DisposableBean
の destroy