public static class DHSessionKeyBuilder.PrecalcRunner extends I2PThread implements DHSessionKeyBuilder.Factory
I2PThread.OOMEventListener
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
DHSessionKeyBuilder.PrecalcRunner(I2PAppContext ctx) |
Modifier and Type | Method and Description |
---|---|
DHSessionKeyBuilder |
getBuilder()
Construct a new DH key builder
or pulls a prebuilt one from the queue.
|
void |
run()
private void log(int level, String msg) { log(level, msg, null); }
private void log(int level, String msg, Throwable t) {
// we cant assume log is created
if (_log == null) _log = new Log(I2PThread.class);
if (_log.shouldLog(level))
_log.log(level, msg, t);
}
|
void |
shutdown()
Note that this stops the singleton precalc thread.
|
addOOMEventListener, fireOOM, removeOOMEventListener
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 DHSessionKeyBuilder.PrecalcRunner(I2PAppContext ctx)
public void shutdown()
public void run()
I2PThread
public DHSessionKeyBuilder getBuilder()
getBuilder
in interface DHSessionKeyBuilder.Factory