public class JedisFactory extends Object
JedisPool instances.
Configuration Parameters
| Name | Default Value | Description |
|---|---|---|
| endpoint | [required] |
The redis server's host and port, i.e. localhost:6379.
If no port is given, the default redis port 6379 is assumed.
|
| password | null |
password: [null] - Auth password for redis server connection; Default is null. |
| minIdle | 0 |
The minimum number of idle connections to maintain in the connection pool. |
| maxIdle | 0 |
The maximum number of idle connections to maintain in the connection pool. |
| maxTotal | |
The maximum number of connections allowed in the connection pool. |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_TOTAL |
static int |
DEFAULT_PORT |
| Constructor and Description |
|---|
JedisFactory() |
| Modifier and Type | Method and Description |
|---|---|
redis.clients.jedis.JedisPool |
build(io.dropwizard.setup.Environment environment) |
com.google.common.net.HostAndPort |
getEndpoint() |
String |
getHost() |
int |
getMaxIdle() |
int |
getMaxTotal() |
int |
getMinIdle() |
String |
getPassword() |
int |
getPort() |
void |
setEndpoint(com.google.common.net.HostAndPort endpoint) |
void |
setMaxIdle(int maxIdle) |
void |
setMaxTotal(int maxTotal) |
void |
setMinIdle(int minIdle) |
void |
setPassword(String password) |
public static final int DEFAULT_PORT
public static final int DEFAULT_MAX_TOTAL
public com.google.common.net.HostAndPort getEndpoint()
public void setEndpoint(com.google.common.net.HostAndPort endpoint)
public String getHost()
public int getPort()
public String getPassword()
public void setPassword(String password)
public int getMinIdle()
public void setMinIdle(int minIdle)
public int getMaxIdle()
public void setMaxIdle(int maxIdle)
public int getMaxTotal()
public void setMaxTotal(int maxTotal)
public redis.clients.jedis.JedisPool build(io.dropwizard.setup.Environment environment)
Copyright © 2016. All rights reserved.