クラス KafkaTemplateSpec<K,V>
java.lang.ObjectSE
org.springframework.integration.dsl.IntegrationComponentSpec<KafkaTemplateSpec<K,V>, org.springframework.kafka.core.KafkaTemplate<K,V>>
org.springframework.integration.kafka.dsl.KafkaTemplateSpec<K,V>
- 型パラメーター:
K- 鍵の型。V- 値の型。
- 実装されているすべてのインターフェース:
DisposableBean、FactoryBean<org.springframework.kafka.core.KafkaTemplate<K,、V>> InitializingBean、Lifecycle、Phased、SmartLifecycle
public class KafkaTemplateSpec<K,V>
extends IntegrationComponentSpec<KafkaTemplateSpec<K,V>, org.springframework.kafka.core.KafkaTemplate<K,V>>
KafkaTemplate の IntegrationComponentSpec 実装。- 導入:
- 5.4
- 作成者:
- Artem Bilan, Gary Russell
フィールドのサマリー
クラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたフィールド
logger, PARSER, targetインターフェース org.springframework.beans.factory.FactoryBean から継承されたフィールド
OBJECT_TYPE_ATTRIBUTEインターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASEメソッドのサマリー
修飾子と型メソッド説明defaultTopic(StringSE defaultTopic) /** Set the default topic for send methods where a topic is not providing.コンポーネント識別子を構成します。messageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) 使用するメッセージコンバーターを設定します。producerListener(org.springframework.kafka.support.ProducerListener<K, V> producerListener) Kafka が送信操作を確認したときに呼び出されるProducerListenerを設定します。クラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたメソッド
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, 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
メソッドの詳細
getTemplate
id
クラスからコピーされた説明:IntegrationComponentSpecコンポーネント識別子を構成します。このコンポーネントのアプリケーションコンテキストに Bean を登録するためのbeanNameとして使用されます。- オーバーライド:
- クラス
IntegrationComponentSpec<KafkaTemplateSpec<K,のV>, org.springframework.kafka.core.KafkaTemplate<K, V>> id - パラメーター:
id- ID。- 戻り値:
- スペック。
defaultTopic
/** Set the default topic for send methods where a topic is not providing.- パラメーター:
defaultTopic- トピック。- 戻り値:
- スペック
producerListener
public KafkaTemplateSpec<K,V> producerListener(org.springframework.kafka.support.ProducerListener<K, V> producerListener) Kafka が送信操作を確認したときに呼び出されるProducerListenerを設定します。デフォルトでは、エラーのみをログに記録するLoggingProducerListenerが構成されています。- パラメーター:
producerListener- リスナー ;nullの可能性があります。- 戻り値:
- スペック
messageConverter
public KafkaTemplateSpec<K,V> messageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter) 使用するメッセージコンバーターを設定します。- パラメーター:
messageConverter- メッセージコンバーター。- 戻り値:
- スペック