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 |
---|---|
Jedis |
connect()
Connect to the Redis instance.
|
static RedisConnectionConfiguration |
create() |
static RedisConnectionConfiguration |
create(java.lang.String host,
int port) |
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 |
withHost(java.lang.String host)
Define the host name of the Redis server.
|
RedisConnectionConfiguration |
withPort(int port)
Define the port number of the Redis server.
|
RedisConnectionConfiguration |
withTimeout(int timeout)
Define the Redis connection timeout.
|
public static RedisConnectionConfiguration create()
public static RedisConnectionConfiguration create(java.lang.String host, int port)
public RedisConnectionConfiguration withHost(java.lang.String host)
public RedisConnectionConfiguration withPort(int port)
public RedisConnectionConfiguration withAuth(java.lang.String auth)
public RedisConnectionConfiguration withTimeout(int timeout)
public Jedis connect()
public void populateDisplayData(DisplayData.Builder builder)