final class YKGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static int | DEFAULT_YK_PRECALC_DELAYDefault delay between precalc operations (ms) |
static int | DEFAULT_YK_PRECALC_MAXDefault maximum pool size |
static int | DEFAULT_YK_PRECALC_MINDefault minimum pool threshold |
static String | PROP_YK_PRECALC_DELAYProperty: delay between precalc operations (ms) |
static String | PROP_YK_PRECALC_MAXProperty: maximum pool size |
static String | PROP_YK_PRECALC_MINProperty: minimum pool threshold |
| Constructor and Description |
|---|
YKGenerator(I2PAppContext context)Caller must also call start() to start the background precalc thread. |
| Modifier and Type | Method and Description |
|---|---|
BigInteger[] | getNextYK()Next precomputed YK value. |
void | shutdown()Stop the background precalc thread. |
void | start()Start the background precalc thread. |
public static final int DEFAULT_YK_PRECALC_DELAY
public static final int DEFAULT_YK_PRECALC_MAX
public static final int DEFAULT_YK_PRECALC_MIN
public static final String PROP_YK_PRECALC_DELAY
public static final String PROP_YK_PRECALC_MAX
public static final String PROP_YK_PRECALC_MIN
public YKGenerator(I2PAppContext context)
public BigInteger[] getNextYK()
public void shutdown()
public void start()