org.cip4.jdflib.util.thread
Class DelayedPersist

java.lang.Object
  extended by java.lang.Thread
      extended by 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 *

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
static DelayedPersist getDelayedPersist()
           
 void queue(IPersistable persistable, long deltaTime)
           
 void run()
           
static void shutDown()
           
 String toString()
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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 off
deltaTime - 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.