public static class RedisConfig.RedisConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
io.vertx.redis.client.RedisClientType |
clientType
The redis client type
|
Optional<Set<URI>> |
hosts
The redis hosts to use while connecting to the redis server.
|
Optional<String> |
masterName
The master name (only considered in HA mode).
|
int |
maxNestedArrays
Tune how much nested arrays are allowed on a redis response.
|
int |
maxPoolSize
The maximum size of the connection pool.
|
int |
maxPoolWaiting
The maximum waiting requests for a connection from the pool.
|
int |
maxWaitingHandlers
Sets how much handlers is the client willing to queue.
|
Optional<Duration> |
poolCleanerInterval
The duration indicating how often should the connection pool cleaner executes.
|
Duration |
poolRecycleTimeout
The timeout for a connection recycling.
|
Optional<io.vertx.redis.client.RedisRole> |
role
The role name (only considered in HA mode).
|
Optional<io.vertx.redis.client.RedisSlaves> |
slaves
Whether or not to use slave nodes (only considered in Cluster mode).
|
Optional<Duration> |
timeout
The maximum delay to wait before a blocking command to redis server times out
|
| Constructor and Description |
|---|
RedisConfiguration() |
@ConfigItem(defaultValueDocumentation="redis://localhost:6379") public Optional<Set<URI>> hosts
The URI provided uses the following schema `redis://[username:password@][host][:port][/database]`
@ConfigItem(defaultValue="10s") public Optional<Duration> timeout
@ConfigItem(defaultValue="standalone") public io.vertx.redis.client.RedisClientType clientType
@ConfigItem(defaultValueDocumentation="mymaster") public Optional<String> masterName
@ConfigItem(defaultValueDocumentation="master") public Optional<io.vertx.redis.client.RedisRole> role
@ConfigItem(defaultValueDocumentation="never") public Optional<io.vertx.redis.client.RedisSlaves> slaves
@ConfigItem(defaultValue="6") public int maxPoolSize
This value should be at least the total number of cluster member (or number of sentinels + 1)
@ConfigItem(defaultValue="24") public int maxPoolWaiting
@ConfigItem public Optional<Duration> poolCleanerInterval
@ConfigItem(defaultValue="15") public Duration poolRecycleTimeout
@ConfigItem(defaultValue="2048") public int maxWaitingHandlers
The client will always work on pipeline mode, this means that messages can start queueing. Using this configuration option, you can control how much backlog you're willing to accept.
@ConfigItem(defaultValue="32") public int maxNestedArrays
Copyright © 2021 JBoss by Red Hat. All rights reserved.