クラス 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) voiddestroy()protected abstract ObjectSEサブクラスはこのメソッドを実装する必要があります。オーバーライドを返します。booleanロギングが有効かどうかを返します。receive()このソースから次に使用可能なメッセージを取得します。voidregisterMetricsCaptor(MetricsCaptor metricsCaptorToSet) MetricsCaptorを注入します。voidsetBeanName(StringSE name) voidsetHeaderExpressions(MapSE<StringSE, Expression> headerExpressions) voidsetLoggingEnabled(boolean loggingEnabled) ロギングを有効にするかどうか。voidsetManagedName(StringSE managedName) voidsetManagedType(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
インターフェースからコピーされた説明:IntegrationManagementMetricsCaptorを注入します。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