クラス PollableKafkaChannel
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.channel.AbstractMessageChannel
org.springframework.integration.kafka.channel.AbstractKafkaChannel
org.springframework.integration.kafka.channel.PollableKafkaChannel
- 実装されたすべてのインターフェース:
Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、ApplicationContextAware
、ExecutorChannelInterceptorAware
、ExpressionCapable
、IntegrationPattern
、NamedComponent
、IntegrationManagement
、TrackableComponent
、MessageChannel
、PollableChannel
、InterceptableChannel
public class PollableKafkaChannel
extends AbstractKafkaChannel
implements PollableChannel, ExecutorChannelInterceptorAware
Apache Kafka トピックによってサポートされるポーリング可能なチャネル。
- 導入:
- 5.4
- 作成者:
- Gary Russell, Artem Bilan
ネストされたクラスのサマリー
クラス org.springframework.integration.channel.AbstractMessageChannel から継承されたネストクラス / インターフェース
AbstractMessageChannel.ChannelInterceptorList
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverrides
フィールドサマリー
クラス org.springframework.integration.kafka.channel.AbstractKafkaChannel から継承されたフィールド
topic
クラス org.springframework.integration.channel.AbstractMessageChannel から継承されたフィールド
interceptors, meters
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, logger
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
インターフェース org.springframework.messaging.MessageChannel から継承されたフィールド
INDEFINITE_TIMEOUT
コンストラクターのサマリー
コンストラクターコンストラクター説明PollableKafkaChannel
(org.springframework.kafka.core.KafkaOperations<?, ?> template, KafkaMessageSource<?, ?> source) 提供されたパラメーターを使用してインスタンスを構築します。メソッドのサマリー
修飾子と型メソッド説明void
addInterceptor
(int index, ChannelInterceptor interceptor) リストの指定されたインデックスにチャネルインターセプターを追加します。void
addInterceptor
(ChannelInterceptor interceptor) リストの最後にチャネルインターセプターを追加します。protected Message<?>
boolean
Message<?>
receive()
Message<?>
receive
(long timeout) removeInterceptor
(int index) boolean
removeInterceptor
(ChannelInterceptor interceptor) void
setInterceptors
(ListSE<ChannelInterceptor> interceptors) チャネルインターセプターのリストを設定します。クラス org.springframework.integration.kafka.channel.AbstractKafkaChannel から継承されたメソッド
doSend, getGroupId, setGroupId
クラス org.springframework.integration.channel.AbstractMessageChannel から継承されたメソッド
destroy, getComponentType, getFullChannelName, getIChannelInterceptorList, getIntegrationPatternType, getInterceptors, getMetricsCaptor, getOverrides, isLoggingEnabled, isObserved, onInit, registerMetricsCaptor, registerObservationRegistry, send, send, setDatatypes, setLoggingEnabled, setMessageConverter, setObservationConvention, setShouldTrack
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
getManagedName, getManagedType, getThisAs, setManagedName, setManagedType
インターフェース org.springframework.messaging.support.InterceptableChannel から継承されたメソッド
getInterceptors
インターフェース org.springframework.messaging.MessageChannel から継承されたメソッド
send, send
インターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
PollableKafkaChannel
public PollableKafkaChannel(org.springframework.kafka.core.KafkaOperations<?, ?> template, KafkaMessageSource<?, ?> source) 提供されたパラメーターを使用してインスタンスを構築します。- パラメーター:
template
- 送信用のテンプレート。source
- 受信のソース。
メソッドの詳細
receive
- 次で指定:
- インターフェース
PollableChannel
のreceive
receive
- 次で指定:
- インターフェース
PollableChannel
のreceive
doReceive
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