Package org.redisson.config
Class SingleServerConfig
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
long
int
int
setAddress
(String address) Set server address.setConnectionMinimumIdleSize
(int connectionMinimumIdleSize) Minimum idle Redis connection amount.setConnectionPoolSize
(int connectionPoolSize) Redis connection pool sizesetDatabase
(int database) Database index used for Redis connection Default is0
setDnsMonitoringInterval
(long dnsMonitoringInterval) Interval in milliseconds to check the endpoint's DNSsetSubscriptionConnectionMinimumIdleSize
(int subscriptionConnectionMinimumIdleSize) Minimum idle subscription connection amount.setSubscriptionConnectionPoolSize
(int subscriptionConnectionPoolSize) Redis subscription-connection pool size limitMethods inherited from class org.redisson.config.BaseConfig
getClientName, getCommandMapper, getConnectTimeout, getCredentialsResolver, getIdleConnectionTimeout, getNameMapper, getPassword, getPingConnectionInterval, getRetryAttempts, getRetryInterval, getSslCiphers, getSslKeyManagerFactory, getSslKeystore, getSslKeystorePassword, getSslProtocols, getSslProvider, getSslTrustManagerFactory, getSslTruststore, getSslTruststorePassword, getSubscriptionsPerConnection, getSubscriptionTimeout, getTcpKeepAliveCount, getTcpKeepAliveIdle, getTcpKeepAliveInterval, getTcpUserTimeout, getTimeout, getUsername, isKeepAlive, isSslEnableEndpointIdentification, isTcpNoDelay, setClientName, setCommandMapper, setConnectTimeout, setCredentialsResolver, setIdleConnectionTimeout, setKeepAlive, setNameMapper, setPassword, setPingConnectionInterval, setRetryAttempts, setRetryInterval, setSslCiphers, setSslEnableEndpointIdentification, setSslKeyManagerFactory, setSslKeystore, setSslKeystorePassword, setSslProtocols, setSslProvider, setSslTrustManagerFactory, setSslTruststore, setSslTruststorePassword, setSubscriptionsPerConnection, setSubscriptionTimeout, setTcpKeepAliveCount, setTcpKeepAliveIdle, setTcpKeepAliveInterval, setTcpNoDelay, setTcpUserTimeout, setTimeout, setUsername
-
Method Details
-
setConnectionPoolSize
Redis connection pool sizeDefault is
64
- Parameters:
connectionPoolSize
- - pool size- Returns:
- config
-
getConnectionPoolSize
public int getConnectionPoolSize() -
setSubscriptionConnectionPoolSize
Redis subscription-connection pool size limitDefault is
50
- Parameters:
subscriptionConnectionPoolSize
- - pool size- Returns:
- config
-
getSubscriptionConnectionPoolSize
public int getSubscriptionConnectionPoolSize() -
setAddress
Set server address. Use follow format -- host:port- Parameters:
address
- of Redis- Returns:
- config
-
getAddress
-
setDnsMonitoringInterval
Interval in milliseconds to check the endpoint's DNSApplications must ensure the JVM DNS cache TTL is low enough to support this.
Set
-1
to disable.Default is
5000
.- Parameters:
dnsMonitoringInterval
- time- Returns:
- config
-
getDnsMonitoringInterval
public long getDnsMonitoringInterval() -
setSubscriptionConnectionMinimumIdleSize
public SingleServerConfig setSubscriptionConnectionMinimumIdleSize(int subscriptionConnectionMinimumIdleSize) Minimum idle subscription connection amount.Default is
1
- Parameters:
subscriptionConnectionMinimumIdleSize
- - connections amount- Returns:
- config
-
getSubscriptionConnectionMinimumIdleSize
public int getSubscriptionConnectionMinimumIdleSize() -
setConnectionMinimumIdleSize
Minimum idle Redis connection amount.Default is
24
- Parameters:
connectionMinimumIdleSize
- - connections amount- Returns:
- config
-
getConnectionMinimumIdleSize
public int getConnectionMinimumIdleSize() -
setDatabase
Database index used for Redis connection Default is0
- Parameters:
database
- index- Returns:
- config
-
getDatabase
public int getDatabase()
-