@Experimental public class AllDatabasesUnhealthyEvent extends Object implements Event
This event indicates that the MultiDbClient attempted to find a healthy database for the current failover attempt but all
databases were unhealthy at that time. The event may be fired multiple times as failover is retried; the
failedAttempts value reflects the number of failed failover attempts so far.
| Constructor and Description |
|---|
AllDatabasesUnhealthyEvent(int failedAttempts,
List<RedisURI> unhealthyDatabases,
StatefulRedisMultiDbConnection<?,?> source)
Creates a new
AllDatabasesUnhealthyEvent. |
| Modifier and Type | Method and Description |
|---|---|
int |
getFailedAttempts()
Returns the number of failed failover attempts before this event was fired.
|
StatefulRedisMultiDbConnection<?,?> |
getSource()
Returns the connection that fired this event.
|
List<RedisURI> |
getUnhealthyDatabases()
Returns an unmodifiable list of unhealthy database URIs at the time this event was fired.
|
String |
toString() |
public AllDatabasesUnhealthyEvent(int failedAttempts,
List<RedisURI> unhealthyDatabases,
StatefulRedisMultiDbConnection<?,?> source)
AllDatabasesUnhealthyEvent.failedAttempts - the number of failed failover attemptsunhealthyDatabases - the list of unhealthy database URIssource - the connection that fired the eventpublic int getFailedAttempts()
public List<RedisURI> getUnhealthyDatabases()
public StatefulRedisMultiDbConnection<?,?> getSource()
Copyright © 2026 lettuce.io. All rights reserved.