クラス DebeziumMessageProducer
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.debezium.inbound.DebeziumMessageProducer
- 実装されたすべてのインターフェース:
Aware
、BeanFactoryAware
、BeanNameAware
、DisposableBean
、InitializingBean
、SmartInitializingSingleton
、ApplicationContextAware
、Lifecycle
、Phased
、SmartLifecycle
、ComponentSourceAware
、ExpressionCapable
、MessageProducer
、IntegrationPattern
、NamedComponent
、IntegrationInboundManagement
、IntegrationManagement
、ManageableLifecycle
、ManageableSmartLifecycle
、TrackableComponent
Debezium イベントチャネルアダプターを変更します。
- 導入:
- 6.2
- 作成者:
- Christian Tzolov, Artem Bilan
ネストされたクラスのサマリー
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverrides
フィールドのサマリー
クラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたフィールド
lifecycleCondition, lifecycleLock
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, logger
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターの概要
コンストラクターコンストラクター説明DebeziumMessageProducer
(io.debezium.engine.DebeziumEngine.Builder<io.debezium.engine.ChangeEvent<byte[], byte[]>> debeziumBuilder) 新しい Debezium メッセージプロデューサー受信 チャネルアダプターを作成します。メソッドのサマリー
修飾子と型メソッド説明protected void
doStart()
デフォルトでは何もしません。protected void
doStop()
デフォルトでは何もしません。サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。protected void
onInit()
サブクラスは、初期化ロジック用にこれを実装できます。void
setContentType
(StringSE contentType) 送信メッセージのコンテンツ型を設定します。void
setEnableBatch
(boolean enable) ChangeEvent
バッチモード処理を有効にします。void
setEnableEmptyPayload
(boolean enabled) tombstone (別名削除) メッセージのサポートを有効にします。void
setHeaderMapper
(HeaderMapper<ListSE<io.debezium.engine.Header<ObjectSE>>> headerMapper) void
setTaskExecutor
(TaskExecutor taskExecutor) Debezium エンジンタスクにTaskExecutor
を設定します。クラス org.springframework.integration.endpoint.MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, isObserved, registerObservationRegistry, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setObservationConvention, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisher
クラス org.springframework.integration.endpoint.AbstractEndpoint から継承されたメソッド
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
クラス org.springframework.integration.context.IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSE
インターフェース org.springframework.integration.support.management.IntegrationManagement から継承されたメソッド
destroy, getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, registerMetricsCaptor, setLoggingEnabled, setManagedName, setManagedType
インターフェース org.springframework.integration.support.context.NamedComponent から継承されたメソッド
getBeanName, getComponentName
コンストラクターの詳細
DebeziumMessageProducer
public DebeziumMessageProducer(io.debezium.engine.DebeziumEngine.Builder<io.debezium.engine.ChangeEvent<byte[], byte[]>> debeziumBuilder) 新しい Debezium メッセージプロデューサー受信 チャネルアダプターを作成します。- パラメーター:
debeziumBuilder
- - 事前設定された Debezium Engine Builder インスタンス。
メソッドの詳細
setEnableBatch
public void setEnableBatch(boolean enable) ChangeEvent
バッチモード処理を有効にします。有効にすると、チャネルアダプターはChangeEvent
のList
SE を単一のダウンストリームMessage
のペイロードとして送信します。このようなバッチペイロードは直列化できません。デフォルトでは、バッチモードは無効になっています。すべての入力ChangeEvent
は、単一のダウンストリームMessage
に変換されます。- パラメーター:
enable
- バッチモードを有効にするには true に設定します。デフォルトでは無効になっています。
setEnableEmptyPayload
public void setEnableEmptyPayload(boolean enabled) tombstone (別名削除) メッセージのサポートを有効にします。データベース行の削除時に、Debezium は、削除された行と同じキーとOptional.empty()
の値を持つ tombstone 変更イベントを送信できます。このレコードは、ダウンストリームプロセッサーのマーカーです。これは、ログ圧縮により、このキーを持つすべてのレコードを削除できることを示します。Debezium コネクター構成で tombstone 機能が有効になっている場合は、空のペイロードも有効にする必要があります。- パラメーター:
enabled
- 空のペイロードを有効にするには true を設定します。デフォルトでは無効になっています。
setTaskExecutor
Debezium エンジンタスクにTaskExecutor
を設定します。- パラメーター:
taskExecutor
- 使用するTaskExecutor
。
setContentType
送信メッセージのコンテンツ型を設定します。提供されたDebeziumEngine
で使用されるSerializationFormat
構成と一致する必要があります。setHeaderMapper
- パラメーター:
headerMapper
- 使用するHeaderMapper
実装。デフォルトはDefaultDebeziumHeaderMapper
です。
getComponentType
クラスからコピーされた説明:IntegrationObjectSupport
サブクラスはこのメソッドを実装して、コンポーネント型情報を提供できます。- 次で指定:
- インターフェース
NamedComponent
のgetComponentType
- オーバーライド:
- クラス
IntegrationObjectSupport
のgetComponentType
onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupport
サブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
MessageProducerSupport
のonInit
doStart
protected void doStart()クラスからコピーされた説明:MessageProducerSupport
デフォルトでは何も実行されません。ライフサイクル管理された動作が必要な場合、サブクラスはこれをオーバーライドできます。'lifecycleLock' によって保護されています。- オーバーライド:
- クラス
MessageProducerSupport
のdoStart
doStop
protected void doStop()クラスからコピーされた説明:MessageProducerSupport
デフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。- オーバーライド:
- クラス
MessageProducerSupport
のdoStop