@ Override public void basicValidate ( final String section ) throws ConfigException { super . basicValidate ( CONFIG_SECTION ) ; if ( address == null && ( sentinels == null || sentinels . isEmpty ( ) ) ) { throw new ConfigException ( CONFIG_SECTION , "Redis configuration requires either an address or at least one sentinel to connect to" ) ; } if ( sentinels != null && ! sentinels . isEmpty ( ) ) { if ( StringUtils . isBlank ( masterName ) ) { throw new ConfigException ( CONFIG_SECTION , "Redis configuration requires a masterName when connecting to sentinel" ) ; } for ( final HostAndPort sentinel : sentinels ) { sentinel . basicValidate ( CONFIG_SECTION ) ; } } }
Validates the configuration