public class RedisConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RedisConfiguration.HostAndPort |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_REDIS_MASTER_NAME
Default name for redis master when using sentinel mode.
|
static String |
DEFAULT_REDIS_POOL_SIZE
Default size of the redis pool.
|
static String |
DEFAULT_REDIS_TIMEOUT
Default redis timeout.
|
static String |
METRIC_PREFIX
Standard prefix for metrics.
|
static String |
REDIS_CLUSTER_MODE
System or configuration property that specifies the redis clustering mode.
|
static String |
REDIS_EXPIRATION_STRATEGY
System or configuration property that specifies expiration strategy used by
redis.
|
static String |
REDIS_HOST
System or configuration property that specifies the address(es) and
optionally port(s) of redis servers or sentinels.
|
static String |
REDIS_MASTER_NAME
System or configuration property that specifies the name of redis master
when using sentinel mode.
|
static String |
REDIS_POOL_SIZE
System or configuration property that specifies the size of the pool of
redis connections.
|
static String |
REDIS_PORT
System or configuration property that specifies port of redis server(s) or
sentinel(s).
|
static String |
REDIS_TIMEOUT
System or configuration property that specifies connection and socket
timeout used by redis.
|
static String |
REDIS_USE_IPV4
System or configuration property that specifies that redis server(s) are
identified using IPv4 addresses.
|
static String |
REDIS_USE_IPV6
System or configuration property that specifies that redis server(s) are
identified using IPv6 addresses.
|
| Constructor and Description |
|---|
RedisConfiguration(SessionConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPoolSize() |
ExpirationStrategy |
getStrategy() |
Integer |
getTimeout() |
List<RedisConfiguration.HostAndPort> |
hostsAndPorts()
Utility method to extract host and port from configuration.
|
String |
toString() |
public static final String METRIC_PREFIX
public static final String REDIS_USE_IPV4
REDIS_USE_IPV4 and REDIS_USE_IPV6 properties are set to
true. Default behavior is to use IPv4 addresses.public static final String REDIS_USE_IPV6
REDIS_USE_IPV4 and REDIS_USE_IPV6 properties are set to
true. Default behavior is to use IPv4 addresses.public static final String REDIS_EXPIRATION_STRATEGY
public static final String REDIS_TIMEOUT
public static final String DEFAULT_REDIS_TIMEOUT
public static final String REDIS_PORT
public static final String REDIS_HOST
public static final String REDIS_POOL_SIZE
public static final String DEFAULT_REDIS_POOL_SIZE
public static final String REDIS_CLUSTER_MODE
public static final String REDIS_MASTER_NAME
public static final String DEFAULT_REDIS_MASTER_NAME
public RedisConfiguration(SessionConfiguration conf)
public ExpirationStrategy getStrategy()
public Integer getTimeout()
public String getPoolSize()
public List<RedisConfiguration.HostAndPort> hostsAndPorts()
Copyright © 2018 Amadeus s.a.s.. All rights reserved.