private RedisNode selectActiveSentinel() { Assert.state(hasRedisSentinelConfigured(), "Sentinel configuration missing!"); for (RedisNode node : this.sentinelConfiguration.getSentinels()) { if (isActive(node)) { return node; } } throw new InvalidDataAccessApiUsageException("Could not find any active sentinels"); }
private RedisNode selectActiveSentinel() { Assert.state(hasRedisSentinelConfigured(), "Sentinel configuration missing!"); for (RedisNode node : this.sentinelConfiguration.getSentinels()) { if (isActive(node)) { return node; } } throw new InvalidDataAccessApiUsageException("Could not find any active sentinels"); }
private RedisNode selectActiveSentinel() { Assert.state(hasRedisSentinelConfigured(), "Sentinel configuration missing!"); for (RedisNode node : this.sentinelConfiguration.getSentinels()) { if (isActive(node)) { return node; } } throw new InvalidDataAccessApiUsageException("Could not find any active sentinels"); }