public class VitroBackgroundThread extends Thread
| Modifier and Type | Class and Description |
|---|---|
static class |
VitroBackgroundThread.Factory
A factory class, for use in Executors, that creates threads with
successive names.
|
static class |
VitroBackgroundThread.WorkLevel |
static class |
VitroBackgroundThread.WorkLevelStamp
An immutable object that holds both the current work level and the time
that it was set.
|
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
VitroBackgroundThread(Runnable target,
String name) |
VitroBackgroundThread(String name) |
| Modifier and Type | Method and Description |
|---|---|
static List<VitroBackgroundThread> |
getLivingThreads()
Get a list of all VitroBackgroundThreads that have not died.
|
static List<VitroBackgroundThread> |
getThreads()
Get a list of all VitroBackgroundThreads that have not been garbage-collected.
|
VitroBackgroundThread.WorkLevelStamp |
getWorkLevel() |
void |
setWorkLevel(VitroBackgroundThread.WorkLevel level,
String... flags) |
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic VitroBackgroundThread(String name)
public static List<VitroBackgroundThread> getThreads()
public static List<VitroBackgroundThread> getLivingThreads()
public void setWorkLevel(VitroBackgroundThread.WorkLevel level, String... flags)
public VitroBackgroundThread.WorkLevelStamp getWorkLevel()
Copyright © 2016. All rights reserved.