クラス AbstractPollableChannel
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.channel.AbstractMessageChannel
org.springframework.integration.channel.AbstractPollableChannel
- 実装済みのインターフェース一覧:
Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, ExecutorChannelInterceptorAware, ComponentSourceAware, ExpressionCapable, IntegrationPattern, NamedComponent, IntegrationManagement, TrackableComponent, MessageChannel, PollableChannel, InterceptableChannel
- 既知の直属サブクラス
QueueChannel
public abstract class AbstractPollableChannel
extends AbstractMessageChannel
implements PollableChannel, ExecutorChannelInterceptorAware
すべてのポーリング可能なチャネルの基本クラス。
- 作成者:
- Mark Fisher, Artem Bilan, Gary Russell, Artem Bilan, Trung Pham
ネストされたクラスの概要
クラス AbstractMessageChannel から継承されたネストクラス / インターフェース
AbstractMessageChannel.ChannelInterceptorListインターフェース IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
クラス AbstractMessageChannel から継承されたフィールド
interceptors, metersクラス IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース MessageChannel から継承されたフィールド
INDEFINITE_TIMEOUTコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明voidaddInterceptor(int index, ChannelInterceptor interceptor) リストの指定されたインデックスにチャネルインターセプターを追加します。voidaddInterceptor(ChannelInterceptor interceptor) リストの最後にチャネルインターセプターを追加します。protected abstract @Nullable Message<?> doReceive(long timeout) サブクラスはこのメソッドを実装する必要があります。このコンポーネントが実装するパターン型を返します。boolean@Nullable Message<?> receive()このチャネルから最初に利用可能なメッセージを受信します。@Nullable Message<?> receive(long timeout) このチャネルから最初に利用可能なメッセージを受信します。removeInterceptor(int index) booleanremoveInterceptor(ChannelInterceptor interceptor) voidsetInterceptors(ListSE<ChannelInterceptor> interceptors) チャネルインターセプターのリストを設定します。クラス AbstractMessageChannel から継承されたメソッド
destroy, doSend, getComponentType, getFullChannelName, getIChannelInterceptorList, getInterceptors, getMetricsCaptor, getOverrides, isApplicationRunning, isLoggingEnabled, isObserved, onInit, registerMetricsCaptor, registerObservationRegistry, send, send, setDatatypes, setLoggingEnabled, setMessageConverter, setObservationConvention, setShouldTrackクラス IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース IntegrationManagement から継承されたメソッド
getManagedName, getManagedType, getThisAs, setManagedName, setManagedTypeインターフェース InterceptableChannel から継承されたメソッド
getInterceptorsインターフェース MessageChannel から継承されたメソッド
send, sendインターフェース NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
AbstractPollableChannel
public AbstractPollableChannel()
方法の詳細
getIntegrationPatternType
インターフェースからコピーされた説明:IntegrationPatternこのコンポーネントが実装するパターン型を返します。- 次で指定:
- インターフェース
IntegrationPattern内のgetIntegrationPatternType - オーバーライド:
- クラス
AbstractMessageChannelのgetIntegrationPatternType - 戻り値:
- このコンポーネントが実装する
IntegrationPatternType
receive
このチャネルから最初に利用可能なメッセージを受信します。チャネルにメッセージが含まれていない場合、このメソッドはブロックします。- 次で指定:
- インターフェース
PollableChannel内のreceive - 戻り値:
- 最初に使用可能なメッセージ、または受信スレッドが中断された場合は
null。
receive
このチャネルから最初に利用可能なメッセージを受信します。チャネルにメッセージが含まれていない場合、このメソッドは、割り当てられたタイムアウトが経過するまでブロックします。指定されたタイムアウトが 0 の場合、メソッドはすぐに戻ります。ゼロ未満の場合、無期限にブロックされます(receive()を参照)。- 次で指定:
- インターフェース
PollableChannel内のreceive - パラメーター:
timeout- ミリ秒単位のタイムアウト- 戻り値:
- 最初に使用可能なメッセージ、または割り当てられた時間内に使用可能なメッセージがない場合、または受信スレッドが中断された場合は
null。
setInterceptors
クラスからコピーされた説明:AbstractMessageChannelチャネルインターセプターのリストを設定します。これにより、既存のインターセプターがすべてクリアされます。- 次で指定:
- インターフェース
InterceptableChannel内のsetInterceptors - オーバーライド:
- クラス
AbstractMessageChannelのsetInterceptors - パラメーター:
interceptors- インターセプターのリスト。
addInterceptor
クラスからコピーされた説明:AbstractMessageChannelリストの最後にチャネルインターセプターを追加します。- 次で指定:
- インターフェース
InterceptableChannel内のaddInterceptor - オーバーライド:
- クラス
AbstractMessageChannelのaddInterceptor - パラメーター:
interceptor- インターセプター。
addInterceptor
クラスからコピーされた説明:AbstractMessageChannelリストの指定されたインデックスにチャネルインターセプターを追加します。- 次で指定:
- インターフェース
InterceptableChannel内のaddInterceptor - オーバーライド:
- クラス
AbstractMessageChannelのaddInterceptor - パラメーター:
index- インターセプターを追加するためのインデックス。interceptor- インターセプター。
removeInterceptor
- 次で指定:
- インターフェース
InterceptableChannel内のremoveInterceptor - オーバーライド:
- クラス
AbstractMessageChannelのremoveInterceptor
removeInterceptor
- 次で指定:
- インターフェース
InterceptableChannel内のremoveInterceptor - オーバーライド:
- クラス
AbstractMessageChannelのremoveInterceptor
hasExecutorInterceptors
public boolean hasExecutorInterceptors()- 次で指定:
- インターフェース
ExecutorChannelInterceptorAware内のhasExecutorInterceptors
doReceive
サブクラスはこのメソッドを実装する必要があります。負でないタイムアウトは、チャネルが空の場合に待機する時間を示します(値が 0 の場合、成功の有無にかかわらずすぐに戻る必要があります)。負のタイムアウト値は、メッセージが使用可能になるか、ブロッキングスレッドが中断されるまでメソッドがブロックされることを示します。- パラメーター:
timeout- タイムアウト。- 戻り値:
- メッセージ、または null。