クラス 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インターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
isPauseable
メソッドの詳細
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。- 戻り値:
- スペック。