public class I2PAppThread extends I2PThread
I2PThread.OOMEventListenerThread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
I2PAppThread()Creates a new I2PAppThread with no target or name. |
I2PAppThread(Runnable r)Creates a new I2PAppThread with the given target runnable. |
I2PAppThread(Runnable r,
String name)Creates a new I2PAppThread with the given target and name. |
I2PAppThread(Runnable r,
String name,
boolean isDaemon)Creates a new I2PAppThread with the given target, name, and daemon status. |
I2PAppThread(String name)Creates a new I2PAppThread with the given name. |
I2PAppThread(ThreadGroup group,
Runnable r,
String name)Creates a new I2PAppThread in the given thread group. |
| Modifier and Type | Method and Description |
|---|---|
void | addOOMEventThreadListener(I2PThread.OOMEventListener lsnr)Register a new component that wants notification of OOM events. |
protected void | fireOOM(OutOfMemoryError oom)fireOOM. |
void | removeOOMEventThreadListener(I2PThread.OOMEventListener lsnr)Unregister a component that wants notification of OOM events. |
addOOMEventListener, removeOOMEventListener, run, startactiveCount, 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, stop, stop, suspend, toString, yieldpublic I2PAppThread()
public I2PAppThread(Runnable r)
r - the target runnablepublic I2PAppThread(Runnable r, String name)
r - the target runnablename - the thread namepublic I2PAppThread(Runnable r, String name, boolean isDaemon)
r - the target runnablename - the thread nameisDaemon - whether the thread is a daemonpublic I2PAppThread(String name)
name - the thread namepublic I2PAppThread(ThreadGroup group, Runnable r, String name)
group - the thread groupr - the target runnablename - the thread namepublic void addOOMEventThreadListener(I2PThread.OOMEventListener lsnr)
lsnr - the listener to registerprotected void fireOOM(OutOfMemoryError oom)
I2PThreadpublic void removeOOMEventThreadListener(I2PThread.OOMEventListener lsnr)
lsnr - the listener to unregister