@Experimental public class MultiDbFailoverBase extends java.lang.Object implements java.lang.AutoCloseable
Base class for CommandExecutor with built-in retry, circuit-breaker, and failover to another database endpoint. With this executor users can seamlessly failover to Disaster Recovery (DR), Backup, and Active-Active cluster(s) by using simple configuration
| Modifier and Type | Field and Description |
|---|---|
protected MultiDbConnectionProvider |
provider |
| Constructor and Description |
|---|
MultiDbFailoverBase(MultiDbConnectionProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
databaseFailover(MultiDbConnectionProvider.Database database)
Functional interface wrapped in retry and circuit breaker logic to handle open circuit breaker
failure scenarios
|
protected final MultiDbConnectionProvider provider
public MultiDbFailoverBase(MultiDbConnectionProvider provider)
public void close()
close in interface java.lang.AutoCloseableprotected void databaseFailover(MultiDbConnectionProvider.Database database)
Copyright © 2025. All rights reserved.