クラス KafkaInboundChannelAdapterSpec<K,V>
java.lang.ObjectSE
org.springframework.integration.dsl.IntegrationComponentSpec < KafkaInboundChannelAdapterSpec <K, V>、KafkaMessageSource <K, V>>
org.springframework.integration.dsl.MessageSourceSpec < KafkaInboundChannelAdapterSpec <K, V>、KafkaMessageSource <K, V>>
org.springframework.integration.kafka.dsl.KafkaInboundChannelAdapterSpec<K,V>
- 型パラメーター:
K
- 鍵の型。V
- 値の型。
- 実装されたすべてのインターフェース:
DisposableBean
、FactoryBean<KafkaMessageSource<K,
、V>> InitializingBean
、Lifecycle
、Phased
、SmartLifecycle
public class KafkaInboundChannelAdapterSpec<K,V>
extends MessageSourceSpec<KafkaInboundChannelAdapterSpec<K,V>,KafkaMessageSource<K,V>>
ポーリングされた Apache Kafka 受信チャネルアダプターの仕様。
- 導入:
- 5.4
- 作成者:
- Gary Russell, Anshul Mehra, Artem Bilan
フィールドのサマリー
クラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたフィールド
logger, PARSER, target
インターフェース org.springframework.beans.factory.FactoryBean から継承されたフィールド
OBJECT_TYPE_ATTRIBUTE
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
メソッドのサマリー
修飾子と型メソッド説明messageConverter
(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) デフォルトを置き換えるようにメッセージコンバーターを設定します。payloadType
(ClassSE<?> type) ペイロード型を設定します。rawMessageHeader
(boolean rawMessageHeader) true に設定すると、生のConsumerRecord
がキーKafkaHeaders.RAW_DATA
およびIntegrationMessageHeaderAccessor.SOURCE_DATA
のヘッダーとして含まれます。クラス org.springframework.integration.dsl.MessageSourceSpec から継承されたメソッド
messageHeaders
クラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたメソッド
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.beans.factory.FactoryBean から継承されたメソッド
isSingleton
メソッドの詳細
messageConverter
public KafkaInboundChannelAdapterSpec<K,V> messageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) デフォルトを置き換えるようにメッセージコンバーターを設定します。MessagingMessageConverter
。- パラメーター:
messageConverter
- コンバーター。- 戻り値:
- スペック。
payloadType
ペイロード型を設定します。型対応のメッセージコンバーターが提供されている場合にのみ適用されます。- パラメーター:
type
- 変換する型。- 戻り値:
- スペック。
rawMessageHeader
true に設定すると、生のConsumerRecord
がキーKafkaHeaders.RAW_DATA
およびIntegrationMessageHeaderAccessor.SOURCE_DATA
のヘッダーとして含まれます。呼び出し元がレコードにアクセスしてエラーを処理できるようにします。- パラメーター:
rawMessageHeader
- ヘッダーを含める場合は true。- 戻り値:
- スペック。