Package org.cip4.jdflib.util.thread
Class DelayedPersist
java.lang.Object
java.lang.Thread
org.cip4.jdflib.util.thread.DelayedPersist
- All Implemented Interfaces:
Runnable
class to persist stuff later
either an IPersistable or Runnable may be queued
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Method Summary
Modifier and TypeMethodDescriptionstatic DelayedPersiststatic DelayedPersistvoidqueue(IPersistable persistable, long deltaTime) voidqueueRunnable(Runnable r, long deltaTime) voidrun()static voidshutDown()toString()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, yield
-
Method Details
-
getDelayedPersist
- Returns:
-
getCurrentDelayedPersist
- Returns:
-
shutDown
public static void shutDown() -
queueRunnable
- Parameters:
persistable- the thing to send offdeltaTime- max wait time in milliseconds - if<=null persist immediately
-
queue
- Parameters:
persistable- the thing to send offdeltaTime- max wait time in milliseconds - if<=null persist immediately
-
run
public void run() -
toString
-