クラス RedisStoreMessageSource
java.lang.ObjectSE
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<RedisStore>
org.springframework.integration.redis.inbound.RedisStoreMessageSource
- 実装されたすべてのインターフェース:
Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、MessageSource<RedisStore>
、IntegrationPattern
、NamedComponent
、IntegrationInboundManagement
、IntegrationManagement
ビューを表すメッセージを Redis ストアに返す受信チャネルアダプター。ストアの型は、
collectionType
属性によって異なります。デフォルトは LIST です。このアダプターは、RedisCollectionFactoryBean.CollectionType
によって識別される 5 種類のコレクションをサポートします。- 導入:
- 2.2
- 作成者:
- Oleg Zhurakousky, Gary Russell, Artem Bilan
ネストされたクラスのサマリー
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverrides
フィールドのサマリー
クラス org.springframework.integration.util.AbstractExpressionEvaluator から継承されたフィールド
EXPRESSION_PARSER, logger
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
コンストラクターの概要
コンストラクターコンストラクター説明RedisStoreMessageSource
(RedisConnectionFactory connectionFactory, Expression keyExpression) 使用されるコレクションの「キー」名に解決される必要がある、指定されたRedisConnectionFactory
および SpEL 式を使用してインスタンスを作成します。RedisStoreMessageSource
(RedisTemplate<StringSE, ?> redisTemplate, Expression keyExpression) 使用されるコレクションの「キー」名に解決される必要がある、指定されたRedisTemplate
および SpEL 式を使用してインスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明protected RedisStore
keyExpression
によって識別されるRedisStore
にビューを含むメッセージを返しますprotected void
onInit()
void
setCollectionType
(RedisCollectionFactoryBean.CollectionType collectionType) クラス org.springframework.integration.endpoint.AbstractMessageSource から継承されたメソッド
buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType
クラス org.springframework.integration.util.AbstractExpressionEvaluator から継承されたメソッド
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService, setSimpleEvaluationContext
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getThisAs, isObserved, registerObservationRegistry
インターフェース org.springframework.integration.core.MessageSource から継承されたメソッド
getIntegrationPatternType
コンストラクターの詳細
RedisStoreMessageSource
指定されたRedisTemplate
と SpEL 式を使用してインスタンスを作成します。このインスタンスは、使用するコレクションの「キー」名に解決される必要があります。RedisTemplate
は完全に初期化され、使用できる状態であると想定しています。"keyExpression" は、AbstractMessageSource.receive()
メソッドを呼び出すたびに評価されます。- パラメーター:
redisTemplate
- Redis テンプレート。keyExpression
- キー式。
RedisStoreMessageSource
指定されたRedisConnectionFactory
と SpEL 式を使用してインスタンスを作成します。このインスタンスは、使用するコレクションの「キー」名に解決されます。これにより、すべての直列化にStringRedisSerializer
を使用するStringRedisTemplate
のインスタンスが作成および初期化されます。"keyExpression" は、AbstractMessageSource.receive()
メソッドが呼び出されるたびに評価されます。- パラメーター:
connectionFactory
- 接続ファクトリ。keyExpression
- キー式。
メソッドの詳細
setCollectionType
onInit
protected void onInit()- オーバーライド:
- クラス
AbstractExpressionEvaluator
のonInit
doReceive
keyExpression
によって識別されるRedisStore
にビューを含むメッセージを返します- 次で指定:
- クラス
AbstractMessageSource<RedisStore>
のdoReceive
- 戻り値:
- 返された値。
getComponentType