public class Elg2KeyFactory extends I2PThread implements KeyFactory
I2PThread.OOMEventListener
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
Elg2KeyFactory(RouterContext ctx) |
Modifier and Type | Method and Description |
---|---|
Elg2KeyPair |
getKeys()
Pulls a prebuilt keypair from the queue,
or if not available, construct a new one.
|
void |
returnUnused(Elg2KeyPair kp)
Return an unused DH key builder
to be put back onto the queue for reuse.
|
void |
run() |
void |
shutdown()
Note that this stops the singleton precalc thread.
|
addOOMEventListener, fireOOM, removeOOMEventListener, start
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, stop, stop, suspend, toString, yield
public Elg2KeyFactory(RouterContext ctx)
public void shutdown()
public Elg2KeyPair getKeys()
getKeys
in interface KeyFactory
public void returnUnused(Elg2KeyPair kp)