クラス KafkaInboundGatewaySpec<K,V,R,S extends KafkaInboundGatewaySpec<K,V,R,S>>
java.lang.ObjectSE
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,G>
org.springframework.integration.dsl.MessagingGatewaySpec<S,KafkaInboundGateway<K,V,R>>
org.springframework.integration.kafka.dsl.KafkaInboundGatewaySpec<K,V,R,S>
- 型パラメーター:
K- 鍵の型。V- リクエスト値型。R- 応答値の型。S- ターゲットKafkaInboundGatewaySpec実装型。
- 実装されているすべてのインターフェース:
Aware、BeanClassLoaderAware、BeanFactoryAware、DisposableBean、FactoryBean<KafkaInboundGateway<K,V,R>>、InitializingBean、Lifecycle、Phased、SmartLifecycle、ComponentsRegistration
public class KafkaInboundGatewaySpec<K,V,R,S extends KafkaInboundGatewaySpec<K,V,R,S>> extends MessagingGatewaySpec<S,KafkaInboundGateway<K,V,R>> implements ComponentsRegistration
- 導入:
- 5.4
- 作成者:
- Gary Russell, Artem Bilan
ネストされたクラスの要約
ネストされたクラス 修飾子と型 クラス 説明 static classKafkaInboundGatewaySpec.KafkaInboundGatewayListenerContainerSpec<K,V,R>ConcurrentMessageListenerContainer構成のKafkaInboundGatewaySpec拡張。フィールドのサマリー
メソッドのサマリー
修飾子と型 メソッド 説明 MapSE<ObjectSE,StringSE>getComponentsToRegister()SmessageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter)レコードコンバーターを使用するようにメッセージコンバーターを設定します。SonPartitionsAssignedSeekCallback(BiConsumerSE<MapSE<org.apache.kafka.common.TopicPartition,LongSE>,org.springframework.kafka.listener.ConsumerSeekAware.ConsumerSeekCallback> onPartitionsAssignedCallback)KafkaMessageListenerContainerからのConsumerSeekAware.onPartitionsAssigned(Map, ConsumerSeekAware.ConsumerSeekCallback)呼び出し中にシーク管理用のBiConsumerSE を指定します。SrecoveryCallback(org.springframework.retry.RecoveryCallback<?> recoveryCallback)再試行操作用のRecoveryCallbackインスタンス。null の場合、再試行が終了した後に例外がコンテナーにスローされます。SretryTemplate(org.springframework.retry.support.RetryTemplate retryTemplate)KafkaInboundGateway.IntegrationRecordMessageListenerをRetryingMessageListenerAdapterにラップするRetryTemplateインスタンスを指定します。クラス org.springframework.integration.dsl.MessagingGatewaySpec から継承されたメソッド
autoStartup, errorChannel, errorChannel, errorOnTimeout, id, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrackクラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたメソッド
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopクラス org.springframework.beans.factory.config.AbstractFactoryBean から継承されたメソッド
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
メソッドの詳細
messageConverter
public S messageConverter(org.springframework.kafka.support.converter.RecordMessageConverter messageConverter)レコードコンバーターを使用するようにメッセージコンバーターを設定します。- パラメーター:
messageConverter- コンバーター。- 戻り値:
- スペック
retryTemplate
KafkaInboundGateway.IntegrationRecordMessageListenerをRetryingMessageListenerAdapterにラップするRetryTemplateインスタンスを指定します。- パラメーター:
retryTemplate- 使用するRetryTemplate。- 戻り値:
- スペック
recoveryCallback
再試行操作用のRecoveryCallbackインスタンス。null の場合、再試行が終了した後に例外がコンテナーにスローされます。retryTemplate(RetryTemplate)が指定されていない場合は意味がありません。- パラメーター:
recoveryCallback- リカバリコールバック。- 戻り値:
- スペック
onPartitionsAssignedSeekCallback
public S onPartitionsAssignedSeekCallback(BiConsumerSE<MapSE<org.apache.kafka.common.TopicPartition,LongSE>,org.springframework.kafka.listener.ConsumerSeekAware.ConsumerSeekCallback> onPartitionsAssignedCallback)KafkaMessageListenerContainerからのConsumerSeekAware.onPartitionsAssigned(Map, ConsumerSeekAware.ConsumerSeekCallback)呼び出し中にシーク管理用のBiConsumerSE を指定します。- パラメーター:
onPartitionsAssignedCallback- 使用するBiConsumerSE- 戻り値:
- スペック
getComponentsToRegister
- 次で指定:
- インターフェース
ComponentsRegistrationのgetComponentsToRegister