public abstract class AbstractRedisConfiguration
extends io.lettuce.core.RedisURI
DEFAULT_REDIS_PORT, DEFAULT_SENTINEL_PORT, DEFAULT_TIMEOUT, DEFAULT_TIMEOUT_DURATION, DEFAULT_TIMEOUT_UNIT, PARAMETER_NAME_CLIENT_NAME, PARAMETER_NAME_DATABASE, PARAMETER_NAME_DATABASE_ALT, PARAMETER_NAME_SENTINEL_MASTER_ID, PARAMETER_NAME_TIMEOUT, TIME_UNIT_MAP, URI_SCHEME_REDIS, URI_SCHEME_REDIS_SECURE, URI_SCHEME_REDIS_SECURE_ALT, URI_SCHEME_REDIS_SENTINEL, URI_SCHEME_REDIS_SENTINEL_SECURE, URI_SCHEME_REDIS_SOCKET, URI_SCHEME_REDIS_SOCKET_ALT, URI_SCHEME_REDIS_TLS_ALT
Modifier | Constructor and Description |
---|---|
protected |
AbstractRedisConfiguration()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getComputationThreadPoolSize()
Returns the pool size (number of threads) for all computation tasks.
|
java.lang.Integer |
getIoThreadPoolSize()
Returns the pool size (number of threads) for IO threads.
|
java.util.Optional<io.lettuce.core.RedisURI> |
getUri() |
java.util.List<io.lettuce.core.RedisURI> |
getUris() |
void |
setComputationThreadPoolSize(java.lang.Integer computationThreadPoolSize)
Sets the thread pool size (number of threads to use) for computation operations (default value is the number of
CPUs).
|
void |
setIoThreadPoolSize(java.lang.Integer ioThreadPoolSize)
Sets the thread pool size (number of threads to use) for I/O operations (default value is the number of CPUs).
|
void |
setUri(java.net.URI uri)
Sets the Redis URI for configuration by string.
|
void |
setUris(java.net.URI... uris)
Sets the Redis URIs for cluster configuration.
|
builder, create, create, create, equals, getClientName, getDatabase, getHost, getPassword, getPort, getResolvedAddress, getSentinelMasterId, getSentinels, getSocket, getTimeout, hashCode, isSsl, isStartTls, isVerifyPeer, setClientName, setDatabase, setHost, setPassword, setPassword, setPassword, setPort, setSentinelMasterId, setSocket, setSsl, setStartTls, setTimeout, setVerifyPeer, toString, toURI
public java.util.Optional<io.lettuce.core.RedisURI> getUri()
public void setUri(java.net.URI uri)
uri
- The URIpublic java.util.List<io.lettuce.core.RedisURI> getUris()
public void setUris(java.net.URI... uris)
uris
- The URIpublic java.lang.Integer getIoThreadPoolSize()
ClientResources.ioThreadPoolSize()
public void setIoThreadPoolSize(java.lang.Integer ioThreadPoolSize)
ClientResources.Builder#eventLoopGroupProvider
is provided.
ClientResources.Builder#ioThreadPoolSize(int)
ioThreadPoolSize
- the thread pool size, must be greater 0
.public java.lang.Integer getComputationThreadPoolSize()
ClientResources.computationThreadPoolSize()
public void setComputationThreadPoolSize(java.lang.Integer computationThreadPoolSize)
ClientResources.Builder#eventExecutorGroup
is provided.
ClientResources.Builder#computationThreadPoolSize(int)
computationThreadPoolSize
- the thread pool size, must be greater 0
.