net.i2p.util
public class I2PThread extends Thread
Modifier and Type | Class and Description |
---|---|
static interface |
I2PThread.OOMEventListener |
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
I2PThread() |
I2PThread(Runnable r) |
I2PThread(Runnable r,
String name) |
I2PThread(Runnable r,
String name,
boolean isDaemon) |
I2PThread(String name) |
I2PThread(ThreadGroup g,
Runnable r) |
Modifier and Type | Method and Description |
---|---|
static void |
addOOMEventListener(I2PThread.OOMEventListener lsnr)
register a new component that wants notification of OOM events
|
protected void |
finalize() |
protected void |
fireOOM(OutOfMemoryError oom) |
static void |
main(String[] args) |
static void |
removeOOMEventListener(I2PThread.OOMEventListener lsnr)
unregister a component that wants notification of OOM events
|
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, yield
public I2PThread()
public I2PThread(String name)
public I2PThread(Runnable r)
public I2PThread(ThreadGroup g, Runnable r)
protected void finalize() throws Throwable
protected void fireOOM(OutOfMemoryError oom)
public static void addOOMEventListener(I2PThread.OOMEventListener lsnr)
public static void removeOOMEventListener(I2PThread.OOMEventListener lsnr)
public static void main(String[] args)