public abstract class RedisConnectionConfiguration
extends java.lang.Object
implements java.io.Serializable
RedisConnectionConfiguration
describes and wraps a connectionConfiguration to Redis
server or cluster.Constructor and Description |
---|
RedisConnectionConfiguration() |
Modifier and Type | Method and Description |
---|---|
redis.clients.jedis.Jedis |
connect()
Connect to the Redis instance.
|
static RedisConnectionConfiguration |
create() |
static RedisConnectionConfiguration |
create(java.lang.String host,
int port) |
static RedisConnectionConfiguration |
create(ValueProvider<java.lang.String> host,
ValueProvider<java.lang.Integer> port) |
RedisConnectionConfiguration |
enableSSL()
Enable SSL connection to Redis server.
|
void |
populateDisplayData(DisplayData.Builder builder)
Populate the display data with connectionConfiguration details.
|
RedisConnectionConfiguration |
withAuth(java.lang.String auth)
Define the password to authenticate on the Redis server.
|
RedisConnectionConfiguration |
withAuth(ValueProvider<java.lang.String> auth)
See
withAuth(String) . |
RedisConnectionConfiguration |
withHost(java.lang.String host)
Define the host name of the Redis server.
|
RedisConnectionConfiguration |
withHost(ValueProvider<java.lang.String> host)
See
withHost(String) . |
RedisConnectionConfiguration |
withPort(int port)
Define the port number of the Redis server.
|
RedisConnectionConfiguration |
withPort(ValueProvider<java.lang.Integer> port)
See
withPort(int) . |
RedisConnectionConfiguration |
withSSL(ValueProvider<java.lang.Boolean> ssl)
Define if a SSL connection to Redis server should be used.
|
RedisConnectionConfiguration |
withTimeout(int timeout)
Define the Redis connection timeout.
|
RedisConnectionConfiguration |
withTimeout(ValueProvider<java.lang.Integer> timeout)
See
withTimeout(int) . |
public static RedisConnectionConfiguration create()
public static RedisConnectionConfiguration create(java.lang.String host, int port)
public static RedisConnectionConfiguration create(ValueProvider<java.lang.String> host, ValueProvider<java.lang.Integer> port)
public RedisConnectionConfiguration withHost(java.lang.String host)
public RedisConnectionConfiguration withHost(ValueProvider<java.lang.String> host)
withHost(String)
.public RedisConnectionConfiguration withPort(int port)
public RedisConnectionConfiguration withPort(ValueProvider<java.lang.Integer> port)
withPort(int)
.public RedisConnectionConfiguration withAuth(java.lang.String auth)
public RedisConnectionConfiguration withAuth(ValueProvider<java.lang.String> auth)
withAuth(String)
.public RedisConnectionConfiguration withTimeout(int timeout)
public RedisConnectionConfiguration withTimeout(ValueProvider<java.lang.Integer> timeout)
withTimeout(int)
.public RedisConnectionConfiguration enableSSL()
public RedisConnectionConfiguration withSSL(ValueProvider<java.lang.Boolean> ssl)
public redis.clients.jedis.Jedis connect()
public void populateDisplayData(DisplayData.Builder builder)