Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
PauseableThread(Runnable runnable)
Constructs a new thread setting the runnable which will be called repeatedly in a loop.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPaused() |
void |
onPause()
Pauses the thread.
|
void |
onResume()
Resumes the thread.
|
void |
run() |
void |
stopThread()
Stops this thread
|
activeCount, checkAccess, 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 PauseableThread(Runnable runnable)
runnable - the runnable.public void onPause()
public void onResume()
public boolean isPaused()
public void stopThread()
Copyright © 2021. All rights reserved.