Class RedisConfig
java.lang.Object
org.summerboot.jexpress.integration.cache.RedisConfig
- All Implemented Interfaces:
JExpressConfig
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RedisConfigprotected Fileprotected List<redis.clients.jedis.JedisPool> protected static org.apache.logging.log4j.Loggerprotected redis.clients.jedis.JedisPoolprotected static final Stringprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PK
- See Also:
-
log
protected static org.apache.logging.log4j.Logger log -
cfgFile
-
jedisPools
-
masterPool
protected volatile redis.clients.jedis.JedisPool masterPool -
nodes
-
reconnectRetryIntervalMinutes
protected volatile int reconnectRetryIntervalMinutes -
sendAlertIntervalMinutes
protected volatile int sendAlertIntervalMinutes -
cfg
-
-
Constructor Details
-
RedisConfig
public RedisConfig()
-
-
Method Details
-
getCfgFile
- Specified by:
getCfgFilein interfaceJExpressConfig
-
name
- Specified by:
namein interfaceJExpressConfig
-
info
- Specified by:
infoin interfaceJExpressConfig
-
temp
- Specified by:
tempin interfaceJExpressConfig- Returns:
- null - disable reload
-
load
- Specified by:
loadin interfaceJExpressConfig- Throws:
Exception
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceJExpressConfig
-
autoFailover
-
getMaster
public redis.clients.jedis.Jedis getMaster() -
getNodes
-
getReconnectRetryIntervalMinutes
public int getReconnectRetryIntervalMinutes() -
getSendAlertIntervalMinutes
public int getSendAlertIntervalMinutes()
-