Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected Collection<Runnable> |
services
Registered services.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
CronService()
Init cron service with default available services.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addService(Runnable task)
Add a new task for execution.
|
void |
run()
Run all registered services once and stop.
|
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
protected Collection<Runnable> services
public CronService()
protected void addService(Runnable task)
task
- task to addCopyright © 1999–2020 CodeLutin. All rights reserved.