public abstract class TimeThread extends Thread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
TimeThread(int hour,
int minute,
int minimunDaysInterval,
int minimunWaitTime,
String action) |
TimeThread(String path) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doInititalOperation() |
abstract void |
doLog(String s) |
abstract void |
doOperation() |
long |
minutesFromNowToHour(Date d,
int hour,
int minute)
Minutes from
date and hour parameter. |
protected void |
printNextCheck(long l,
String message) |
void |
run() |
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, yieldpublic TimeThread(String path)
public TimeThread(int hour,
int minute,
int minimunDaysInterval,
int minimunWaitTime,
String action)
public abstract void doOperation()
public abstract void doInititalOperation()
public abstract void doLog(String s)
public long minutesFromNowToHour(Date d, int hour, int minute)
date and hour parameter. If
current hour is upper than parameters, it returns the difference between
current date and parameters.d - hour - minute - protected void printNextCheck(long l,
String message)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.