@Test(expectedExceptions = CacheConfigurationException.class, expectedExceptionsMessageRegExp = "ISPN(\\d)*: Invalid max_retries \\(value=-1\\). " + "Value should be greater or equal than zero.") public void testNegativeRetriesPerServer() { ConfigurationBuilder builder = HotRodClientTestingUtil.newRemoteConfigurationBuilder(); builder.maxRetries(-1); builder.build(); }
public int maxRetries() { return maxRetries; }
Configuration { public int maxRetries() { return maxRetries; } }
Configuration { public int maxRetries() { return maxRetries; } Configuration(ExecutorFactoryConfiguration asyncExecutorFactory, Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory, ClassLoader classLoader,
                        ClientIntelligence clientIntelligence, ConnectionPoolConfiguration connectionPool, int connectionTimeout, Class<? extends ConsistentHash>[] consistentHashImpl, boolean forceReturnValues, int keySizeEstimate,
                        Marshaller marshaller, Class<? extends Marshaller> marshallerClass,
                        ProtocolVersion protocolVersion, List<ServerConfiguration> servers, int socketTimeout, SecurityConfiguration security, boolean tcpNoDelay, boolean tcpKeepAlive,
                        int valueSizeEstimate, int maxRetries, NearCacheConfiguration nearCache,
                        List<ClusterConfiguration> clusters, List<String> serialAllowList, int batchSize,
                        TransactionConfiguration transaction, StatisticsConfiguration statistics, Features features,
                        List<SerializationContextInitializer> contextInitializers,
                        Map<String, RemoteCacheConfiguration> remoteCaches); }
Configuration { public int maxRetries() { return maxRetries; } Configuration(ExecutorFactoryConfiguration asyncExecutorFactory, Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory, ClassLoader classLoader,
                        ClientIntelligence clientIntelligence, ConnectionPoolConfiguration connectionPool, int connectionTimeout, Class<? extends ConsistentHash>[] consistentHashImpl, boolean forceReturnValues, int keySizeEstimate,
                        Marshaller marshaller, Class<? extends Marshaller> marshallerClass,
                        ProtocolVersion protocolVersion, List<ServerConfiguration> servers, int socketTimeout, SecurityConfiguration security, boolean tcpNoDelay, boolean tcpKeepAlive,
                        int valueSizeEstimate, int maxRetries, NearCacheConfiguration nearCache,
                        List<ClusterConfiguration> clusters, List<String> serialAllowList, int batchSize,
                        TransactionConfiguration transaction, StatisticsConfiguration statistics, Features features,
                        List<SerializationContextInitializer> contextInitializers,
                        Map<String, RemoteCacheConfiguration> remoteCaches); ExecutorFactoryConfiguration asyncExecutorFactory(); Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory(); @Deprecated ClassLoader classLoader(); ClientIntelligence clientIntelligence(); ConnectionPoolConfiguration connectionPool(); int connectionTimeout(); Class<? extends ConsistentHash>[] consistentHashImpl(); Class<? extends ConsistentHash> consistentHashImpl(int version); boolean forceReturnValues(); @Deprecated int keySizeEstimate(); Marshaller marshaller(); Class<? extends Marshaller> marshallerClass(); @Deprecated NearCacheConfiguration nearCache(); ProtocolVersion version(); List<ServerConfiguration> servers(); List<ClusterConfiguration> clusters(); int socketTimeout(); SecurityConfiguration security(); boolean tcpNoDelay(); boolean tcpKeepAlive(); @Deprecated int valueSizeEstimate(); int maxRetries(); @Deprecated List<String> serialWhitelist(); List<String> serialAllowList(); @Deprecated ClassAllowList getClassWhiteList(); ClassAllowList getClassAllowList(); int batchSize(); Map<String, RemoteCacheConfiguration> remoteCaches(); RemoteCacheConfiguration addRemoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer); void removeRemoteCache(String name); StatisticsConfiguration statistics(); TransactionConfiguration transaction(); Features features(); List<SerializationContextInitializer> getContextInitializers(); @Override String toString(); Properties properties(); }
Configuration { public int maxRetries() { return maxRetries; } Configuration(ExecutorFactoryConfiguration asyncExecutorFactory, Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory, ClassLoader classLoader,
                        ClientIntelligence clientIntelligence, ConnectionPoolConfiguration connectionPool, int connectionTimeout, Class<? extends ConsistentHash>[] consistentHashImpl, boolean forceReturnValues, int keySizeEstimate,
                        Marshaller marshaller, Class<? extends Marshaller> marshallerClass,
                        ProtocolVersion protocolVersion, List<ServerConfiguration> servers, int socketTimeout, SecurityConfiguration security, boolean tcpNoDelay, boolean tcpKeepAlive,
                        int valueSizeEstimate, int maxRetries, NearCacheConfiguration nearCache,
                        List<ClusterConfiguration> clusters, List<String> serialAllowList, int batchSize,
                        TransactionConfiguration transaction, StatisticsConfiguration statistics, Features features,
                        List<SerializationContextInitializer> contextInitializers,
                        Map<String, RemoteCacheConfiguration> remoteCaches); ExecutorFactoryConfiguration asyncExecutorFactory(); Supplier<FailoverRequestBalancingStrategy> balancingStrategyFactory(); @Deprecated ClassLoader classLoader(); ClientIntelligence clientIntelligence(); ConnectionPoolConfiguration connectionPool(); int connectionTimeout(); Class<? extends ConsistentHash>[] consistentHashImpl(); Class<? extends ConsistentHash> consistentHashImpl(int version); boolean forceReturnValues(); @Deprecated int keySizeEstimate(); Marshaller marshaller(); Class<? extends Marshaller> marshallerClass(); @Deprecated NearCacheConfiguration nearCache(); ProtocolVersion version(); List<ServerConfiguration> servers(); List<ClusterConfiguration> clusters(); int socketTimeout(); SecurityConfiguration security(); boolean tcpNoDelay(); boolean tcpKeepAlive(); @Deprecated int valueSizeEstimate(); int maxRetries(); @Deprecated List<String> serialWhitelist(); List<String> serialAllowList(); @Deprecated ClassAllowList getClassWhiteList(); ClassAllowList getClassAllowList(); int batchSize(); Map<String, RemoteCacheConfiguration> remoteCaches(); RemoteCacheConfiguration addRemoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer); void removeRemoteCache(String name); StatisticsConfiguration statistics(); TransactionConfiguration transaction(); Features features(); List<SerializationContextInitializer> getContextInitializers(); @Override String toString(); Properties properties();  }