Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
CycleThread(@NotNull String name,
long sleepInterval)
Creates new cycle thread with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
iteration()
Called on each iteration.
|
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, yieldprotected CycleThread(@NotNull
@NotNull String name,
long sleepInterval)
name - thread namesleepInterval - sleep interval before each iterationpublic abstract void iteration()
throws InterruptedException
InterruptedException - Еhrows if no specific handling required.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021