Package org.javlo.utils.backup
Class BackupThread
- java.lang.Object
-
- java.lang.Thread
-
- org.javlo.utils.backup.BackupThread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static int
INSTANCE_COUNT
boolean
run
static boolean
RUN
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description BackupThread(File targetFolder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBackup(BackupBean bean)
protected void
finalize()
static void
main(String[] args)
void
run()
-
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, toString, yield
-
-
-
-
Constructor Detail
-
BackupThread
public BackupThread(File targetFolder)
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
addBackup
public void addBackup(BackupBean bean)
-
main
public static void main(String[] args) throws InterruptedException
- Throws:
InterruptedException
-
-