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| Modifier | Constructor and Description |
|---|---|
protected |
RedisCaller(LeaseDTO leaseDTO)
Protected constructor, only to be called from
LeaseDTO |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Thread run method
|
protected void |
savePendingCall(double amount)
Save this amount in pending call list to be called whenever possible.
|
protected 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, yieldCopyright © 2022. All rights reserved.