Package redis.clients.jedis
Class JedisSentinelPool.MasterListener
- java.lang.Object
-
- java.lang.Thread
-
- redis.clients.jedis.JedisSentinelPool.MasterListener
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- JedisSentinelPool
protected class JedisSentinelPool.MasterListener extends Thread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected String
host
protected Jedis
j
protected String
masterName
protected int
port
protected AtomicBoolean
running
protected long
subscribeRetryWaitTimeMillis
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MasterListener()
MasterListener(String masterName, String host, int port)
MasterListener(String masterName, String host, int port, long subscribeRetryWaitTimeMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
void
shutdown()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
masterName
protected String masterName
-
host
protected String host
-
port
protected int port
-
subscribeRetryWaitTimeMillis
protected long subscribeRetryWaitTimeMillis
-
j
protected volatile Jedis j
-
running
protected AtomicBoolean running
-
-