org.silverpeas.util.data
Class LastModifiedDateFileThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.silverpeas.util.data.LastModifiedDateFileThread
All Implemented Interfaces:
Runnable

public class LastModifiedDateFileThread
extends Thread

A thread in order to update asynchronously the last modified date of given file and folders.


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 void addFile(File file)
          Add a file to process.
static boolean isRunning()
          Indicates if the thread is running.
 void run()
          Process all the requests.
 
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, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addFile

public static void addFile(File file)
Add a file to process.

Parameters:
file -

isRunning

public static boolean isRunning()
Indicates if the thread is running.

Returns:
true if running, false otherwise.

run

public void run()
Process all the requests. This method should be private but is already declared public in the base class Thread.

Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2016 Silverpeas. All Rights Reserved.