public class RedisCaller extends Thread
LeaseDTO.getLease(double, LeaseResponse, boolean) method is to reduce the time
of returning lease to redis and calling publish method on empty lease. These two method can be called any time after
LeaseDTO.getLease(double, LeaseResponse, boolean) method is done.Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
RedisCaller()
Protected constructor, only to be called from
BalanceManager |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Thread run method
|
void |
savePendingCall(RedisCall redisCall)
Save this redisCall in pending call list to be called whenever possible.
|
void |
shutDown()
Shut down this thread.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic RedisCaller()
BalanceManagerpublic void run()
public void savePendingCall(RedisCall redisCall)
redisCall - Redis Call to be increased in redis.public void shutDown()
Copyright © 2023. All rights reserved.