Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我基于嵌入式 debezium 的 CDC 应用程序中,我想捕获数据库连接失败以自动重试连接。
有没有办法在我的程序中捕获数据库连接失败?
使用. EmbeddedEngine_CompletionCallback
EmbeddedEngine
CompletionCallback
EmbeddedEngine.CompletionCallback completionCallback = (success, message, error) -> { //Handle the error. }; EmbeddedEngine engine = EmbeddedEngine.create() .using(completionCallback) ... .build();