RunnableDHSessionKeyBuilder.PrecalcRunner, I2PAppThread, JobQueueRunnerpublic class I2PThread extends Thread
Thread for all router uses.
For applications, I2PAppThread is preferred.
Provides the following features:
run().
start()
with distinct message, and does not call the OOM listener.
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
I2PThread.OOMEventListener |
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor | 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) |
|
I2PThread(ThreadGroup group,
Runnable r,
String name) |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
addOOMEventListener(I2PThread.OOMEventListener lsnr) |
register a new component that wants notification of OOM events
|
protected void |
fireOOM(OutOfMemoryError oom) |
|
static void |
removeOOMEventListener(I2PThread.OOMEventListener lsnr) |
unregister a component that wants notification of OOM events
|
void |
run() |
|
void |
start() |
Overridden to provide useful info to users on OOM, and to prevent
shutting down the whole JVM for what is most likely not a heap issue.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactiveCount, 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, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yieldpublic I2PThread()
public I2PThread(String name)
public I2PThread(Runnable r)
public I2PThread(ThreadGroup g, Runnable r)
public I2PThread(ThreadGroup group, Runnable r, String name)
public void start()
protected void fireOOM(OutOfMemoryError oom)
public static void addOOMEventListener(I2PThread.OOMEventListener lsnr)
public static void removeOOMEventListener(I2PThread.OOMEventListener lsnr)