|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
net.i2p.util.I2PThread
net.i2p.util.I2PAppThread
public class I2PAppThread
Like I2PThread but with per-thread OOM listeners, rather than a static router-wide listener list, so that an OOM in an app won't call the router listener to shutdown the whole router.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.i2p.util.I2PThread |
---|
I2PThread.OOMEventListener |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
I2PAppThread()
|
|
I2PAppThread(java.lang.Runnable r)
|
|
I2PAppThread(java.lang.Runnable r,
java.lang.String name)
|
|
I2PAppThread(java.lang.Runnable r,
java.lang.String name,
boolean isDaemon)
|
|
I2PAppThread(java.lang.String name)
|
Method Summary | |
---|---|
void |
addOOMEventThreadListener(I2PThread.OOMEventListener lsnr)
register a new component that wants notification of OOM events |
protected void |
fireOOM(java.lang.OutOfMemoryError oom)
|
void |
removeOOMEventThreadListener(I2PThread.OOMEventListener lsnr)
unregister a component that wants notification of OOM events |
Methods inherited from class net.i2p.util.I2PThread |
---|
addOOMEventListener, finalize, main, removeOOMEventListener, run |
Methods inherited from class java.lang.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, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public I2PAppThread()
public I2PAppThread(java.lang.String name)
public I2PAppThread(java.lang.Runnable r)
public I2PAppThread(java.lang.Runnable r, java.lang.String name)
public I2PAppThread(java.lang.Runnable r, java.lang.String name, boolean isDaemon)
Method Detail |
---|
protected void fireOOM(java.lang.OutOfMemoryError oom)
fireOOM
in class I2PThread
public void addOOMEventThreadListener(I2PThread.OOMEventListener lsnr)
public void removeOOMEventThreadListener(I2PThread.OOMEventListener lsnr)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |