org.cip4.jdflib.util.thread
Class DelayedPersist
java.lang.Object
java.lang.Thread
org.cip4.jdflib.util.thread.DelayedPersist
- All Implemented Interfaces:
- Runnable
public class DelayedPersist
- extends Thread
class to persist stuff later
- Author:
- Rainer Prosi, Heidelberger Druckmaschinen *
| Methods inherited from class java.lang.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, yield |
getDelayedPersist
public static DelayedPersist getDelayedPersist()
- Returns:
shutDown
public static void shutDown()
queue
public void queue(IPersistable persistable,
long deltaTime)
- Parameters:
persistable - the thing to send offdeltaTime - max wait time in milliseconds - if<=null persist immediately
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
- See Also:
Thread.run()
toString
public String toString()
- Overrides:
toString in class Thread
- Returns:
- See Also:
Thread.toString()
Copyright © 2013. All Rights Reserved.