クラス 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(@Nullable ObjectSE result) voiddestroy()protected abstract @Nullable ObjectSEサブクラスはこのメソッドを実装する必要があります。@Nullable StringSE@Nullable StringSEオーバーライドを返します。booleanロギングが有効かどうかを返します。receive()このソースから次に使用可能なメッセージを取得します。voidregisterMetricsCaptor(MetricsCaptor metricsCaptorToSet) MetricsCaptorを注入します。voidsetBeanName(StringSE name) voidsetHeaderExpressions(@Nullable 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 から継承されたメソッド
getBeanName, getComponentType
コンストラクターの詳細
AbstractMessageSource
public AbstractMessageSource()
方法の詳細
setHeaderExpressions
registerMetricsCaptor
インターフェースからコピーされた説明:IntegrationManagementMetricsCaptorを注入します。ObservationRegistryが指定されている場合は無視されます。- 次で指定:
- インターフェース
IntegrationManagement内のregisterMetricsCaptor - パラメーター:
metricsCaptorToSet- キャプター。- 関連事項:
setBeanName
- 次で指定:
- インターフェース
BeanNameAware内のsetBeanName
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