クラス 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
ネストされたクラスの概要
インターフェース IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
クラス AbstractEndpoint から継承されたフィールド
lifecycleLockクラス IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクター概要
コンストラクターコンストラクター説明DebeziumMessageProducer(io.debezium.engine.DebeziumEngine.Builder<io.debezium.engine.ChangeEvent<byte[], byte[]>> debeziumBuilder) 新しい Debezium メッセージプロデューサー受信 チャネルアダプターを作成します。方法の概要
修飾子と型メソッド説明protected voiddoStart()デフォルトでは何もしません。protected voiddoStop()デフォルトでは何もしません。protected voidonInit()サブクラスは、初期化ロジック用にこれを実装できます。voidsetContentType(StringSE contentType) 送信メッセージのコンテンツ型を設定します。voidsetEnableBatch(boolean enable) ChangeEventバッチモード処理を有効にします。voidsetEnableEmptyPayload(boolean enabled) tombstone (別名削除) メッセージのサポートを有効にします。voidsetHeaderMapper(HeaderMapper<ListSE<io.debezium.engine.Header<ObjectSE>>> headerMapper) voidsetTaskExecutor(TaskExecutor taskExecutor) Debezium エンジンタスクにTaskExecutorを設定します。クラス MessageProducerSupport から継承されたメソッド
afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, getOutputChannelName, getRequiredOutputChannel, isObserved, registerObservationRegistry, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setObservationConvention, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisherクラス AbstractEndpoint から継承されたメソッド
destroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopクラス 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クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース IntegrationManagement から継承されたメソッド
destroy, getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, registerMetricsCaptor, setLoggingEnabled, setManagedName, setManagedTypeインターフェース NamedComponent から継承されたメソッド
getBeanName, getComponentNameインターフェース SmartLifecycle から継承されたメソッド
isPauseable
コンストラクターの詳細
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のListSE を単一のダウンストリーム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
- 次で指定:
- インターフェース
NamedComponent内のgetComponentType - オーバーライド:
- クラス
MessageProducerSupportのgetComponentType
onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupportサブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
MessageProducerSupportのonInit
doStart
protected void doStart()クラスからコピーされた説明:MessageProducerSupportデフォルトでは何も実行されません。ライフサイクル管理された動作が必要な場合、サブクラスはこれをオーバーライドできます。'lifecycleLock' によって保護されています。- オーバーライド:
- クラス
MessageProducerSupportのdoStart
doStop
protected void doStop()クラスからコピーされた説明:MessageProducerSupportデフォルトでは何もしません。サブクラスは、ライフサイクル管理の動作が必要な場合、これをオーバーライドできます。- オーバーライド:
- クラス
MessageProducerSupportのdoStop