クラス AbstractFetchLimitingMessageSource<T>
java.lang.ObjectSE
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<T>
org.springframework.integration.endpoint.AbstractFetchLimitingMessageSource<T>
- 型パラメーター:
T
- 予想されるペイロード型。
- 実装されたすべてのインターフェース:
Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、MessageSource<T>
、IntegrationPattern
、NamedComponent
、IntegrationInboundManagement
、IntegrationManagement
、MessageSourceManagement
public abstract class AbstractFetchLimitingMessageSource<T>
extends AbstractMessageSource<T>
implements MessageSourceManagement
フェッチするリモートオブジェクトの数を制限できるメッセージソース。
- 導入:
- 5.0
- 作成者:
- Gary Russell
ネストされたクラスのサマリー
インターフェース 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
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected ObjectSE
サブクラスはこのメソッドを実装する必要があります。protected abstract ObjectSE
doReceive
(int maxFetchSizeToReceive) サブクラスはこのメソッドを実装する必要があります。int
最大フェッチサイズを返します。void
setMaxFetchSize
(int maxFetchSize) オブジェクトをフェッチする必要がある場合に、ソースがフェッチするオブジェクトの最大数を設定します。クラス 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, 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
コンストラクターの詳細
AbstractFetchLimitingMessageSource
public AbstractFetchLimitingMessageSource()
メソッドの詳細
setMaxFetchSize
public void setMaxFetchSize(int maxFetchSize) インターフェースからコピーされた説明:MessageSourceManagement
オブジェクトをフェッチする必要がある場合に、ソースがフェッチするオブジェクトの最大数を設定します。maxFetchSize を 0 に設定すると、リモートフェッチが無効になり、負の値は制限がないことを示します。- 次で指定:
- インターフェース
MessageSourceManagement
のsetMaxFetchSize
- パラメーター:
maxFetchSize
- 最大フェッチサイズ。負の値は無制限を意味します。
getMaxFetchSize
public int getMaxFetchSize()インターフェースからコピーされた説明:MessageSourceManagement
最大フェッチサイズを返します。- 次で指定:
- インターフェース
MessageSourceManagement
のgetMaxFetchSize
- 戻り値:
- 最大フェッチサイズ。
- 関連事項:
doReceive
クラスからコピーされた説明:AbstractMessageSource
サブクラスはこのメソッドを実装する必要があります。通常、戻り値は T 型のpayload
ですが、戻り値はペイロードが T 型のMessage
インスタンスでもかまいません。追加のヘッダーの作成に使用されるAbstractIntegrationMessageBuilder
にすることもできます。- 次で指定:
- クラス
AbstractMessageSource<T>
のdoReceive
- 戻り値:
- 返された値。
doReceive
サブクラスはこのメソッドを実装する必要があります。通常、戻り値は型 T のペイロードですが、戻り値はペイロードが型 T のメッセージインスタンスでもかまいません。- パラメーター:
maxFetchSizeToReceive
- フェッチが必要な場合にフェッチするメッセージの最大数。- 戻り値:
- 返された値。