クラス AbstractMessageSource<T>
java.lang.ObjectSE
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<T>
- 型パラメーター:
T
- ペイロード型。
- 実装されたすべてのインターフェース:
Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、MessageSource<T>
、IntegrationPattern
、NamedComponent
、IntegrationInboundManagement
、IntegrationManagement
- 既知の直属サブクラス
AbstractFetchLimitingMessageSource
、AbstractMongoDbMessageSource
、AmqpMessageSource
、AttributePollingMessageSource
、ByteStreamReadingMessageSource
、CharacterStreamReadingMessageSource
、ExpressionEvaluatingMessageSource
、FeedEntryMessageSource
、FileReadingMessageSource
、HazelcastDistributedSQLMessageSource
、JdbcPollingChannelAdapter
、JmsDestinationPollingSource
、JpaPollingChannelAdapter
、KafkaMessageSource
、MailReceivingMessageSource
、MBeanTreePollingMessageSource
、MessageProcessorMessageSource
、MethodInvokingMessageSource
、R2dbcMessageSource
、RedisStoreMessageSource
、ResourceRetrievingMessageSource
、ScriptExecutingMessageSource
、StoredProcPollingChannelAdapter
@IntegrationManagedResource
public abstract class AbstractMessageSource<T>
extends AbstractExpressionEvaluator
implements MessageSource<T>, IntegrationInboundManagement, NamedComponent, BeanNameAware
抽象メッセージソース。
- 導入:
- 2.0
- 作成者:
- Mark Fisher, 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
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明buildMessage
(ObjectSE result) void
destroy()
protected abstract ObjectSE
サブクラスはこのメソッドを実装する必要があります。オーバーライドを返します。boolean
ロギングが有効かどうかを返します。receive()
このソースから次に使用可能なメッセージを取得します。void
registerMetricsCaptor
(MetricsCaptor metricsCaptorToSet) MetricsCaptor
を注入します。void
setBeanName
(StringSE name) void
setHeaderExpressions
(MapSE<StringSE, Expression> headerExpressions) void
setLoggingEnabled
(boolean loggingEnabled) ロギングを有効にするかどうか。void
setManagedName
(StringSE managedName) void
setManagedType
(StringSE managedType) クラス org.springframework.integration.util.AbstractExpressionEvaluator から継承されたメソッド
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, 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 から継承されたメソッド
getComponentType
コンストラクターの詳細
AbstractMessageSource
public AbstractMessageSource()
メソッドの詳細
setHeaderExpressions
registerMetricsCaptor
インターフェースからコピーされた説明:IntegrationManagement
MetricsCaptor
を注入します。ObservationRegistry
が指定されている場合は無視されます。- 次で指定:
- インターフェース
IntegrationManagement
のregisterMetricsCaptor
- パラメーター:
metricsCaptorToSet
- キャプター。- 関連事項:
setBeanName
- 次で指定:
- インターフェース
BeanNameAware
のsetBeanName
getBeanName
- 次で指定:
- インターフェース
NamedComponent
のgetBeanName
setManagedType
- 次で指定:
- インターフェース
IntegrationManagement
のsetManagedType
getManagedType
- 次で指定:
- インターフェース
IntegrationManagement
のgetManagedType
setManagedName
- 次で指定:
- インターフェース
IntegrationManagement
のsetManagedName
getManagedName
- 次で指定:
- インターフェース
IntegrationManagement
のgetManagedName
getComponentName
- 次で指定:
- インターフェース
NamedComponent
のgetComponentName
isLoggingEnabled
public boolean isLoggingEnabled()インターフェースからコピーされた説明:IntegrationManagement
ロギングが有効かどうかを返します。- 次で指定:
- インターフェース
IntegrationManagement
のisLoggingEnabled
- 戻り値:
- 有効な場合は true。
setLoggingEnabled
public void setLoggingEnabled(boolean loggingEnabled) インターフェースからコピーされた説明:IntegrationManagement
ロギングを有効にするかどうか。- 次で指定:
- インターフェース
IntegrationManagement
のsetLoggingEnabled
- パラメーター:
loggingEnabled
- 無効にする場合は false。
getOverrides
インターフェースからコピーされた説明:IntegrationManagement
オーバーライドを返します。- 次で指定:
- インターフェース
IntegrationManagement
のgetOverrides
- 戻り値:
- オーバーライド。
receive
インターフェースからコピーされた説明:MessageSource
このソースから次に使用可能なメッセージを取得します。使用可能なメッセージがない場合は、null
を返します。- 次で指定:
- インターフェース
MessageSource<T>
のreceive
- 戻り値:
- メッセージまたは null。
buildMessage
doReceive
サブクラスはこのメソッドを実装する必要があります。通常、戻り値は T 型のpayload
ですが、戻り値はペイロードが T 型のMessage
インスタンスでもかまいません。追加のヘッダーの作成に使用されるAbstractIntegrationMessageBuilder
にすることもできます。- 戻り値:
- 返された値。
destroy
public void destroy()- 次で指定:
- インターフェース
DisposableBean
のdestroy
- 次で指定:
- インターフェース
IntegrationManagement
のdestroy