クラス 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 @Nullable RedisStorekeyExpressionによって識別されるRedisStoreにビューを含むメッセージを返しますprotected voidonInit()voidsetCollectionType(RedisCollectionFactoryBean.CollectionType collectionType) クラス org.springframework.integration.endpoint.AbstractMessageSource から継承されたメソッド
buildMessage, destroy, 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インターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName
コンストラクターの詳細
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