public static class MultiDbConnectionProvider.Database
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
clearGracePeriod() |
void |
close() |
void |
forceDisconnect() |
io.github.resilience4j.circuitbreaker.CircuitBreaker |
getCircuitBreaker() |
float |
getCircuitBreakerFailureRateThreshold() |
int |
getCircuitBreakerMinNumOfFailures() |
Connection |
getConnection() |
ConnectionPool |
getConnectionPool() |
Endpoint |
getEndpoint() |
HealthStatus |
getHealthStatus() |
io.github.resilience4j.retry.Retry |
getRetry() |
float |
getWeight()
Assigned weight for this database
|
boolean |
isCBForcedOpen() |
boolean |
isDisabled() |
boolean |
isFailbackSupported()
Whether failback is supported by client
|
boolean |
isHealthy() |
boolean |
isInGracePeriod()
Checks if the da is currently in grace period
|
boolean |
retryOnFailover() |
void |
setDisabled(boolean disabled) |
void |
setGracePeriod()
Sets the grace period for this database
|
void |
setGracePeriod(long gracePeriod) |
java.lang.String |
toString() |
public Endpoint getEndpoint()
public Connection getConnection()
@VisibleForTesting public ConnectionPool getConnectionPool()
public io.github.resilience4j.retry.Retry getRetry()
public io.github.resilience4j.circuitbreaker.CircuitBreaker getCircuitBreaker()
public HealthStatus getHealthStatus()
public float getWeight()
public boolean isCBForcedOpen()
public boolean isHealthy()
public boolean retryOnFailover()
public int getCircuitBreakerMinNumOfFailures()
public float getCircuitBreakerFailureRateThreshold()
public boolean isDisabled()
public void setDisabled(boolean disabled)
public boolean isInGracePeriod()
public void setGracePeriod()
public void setGracePeriod(long gracePeriod)
public void clearGracePeriod()
public boolean isFailbackSupported()
public void forceDisconnect()
public void close()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2025. All rights reserved.