class TCBShare extends Object
| Constructor and Description |
|---|
TCBShare(I2PAppContext ctx,
SimpleTimer2 timer)Creates a new TCB share cache. |
| Modifier and Type | Method and Description |
|---|---|
void | stop()Cannot be restarted. |
void | updateOptsFromShare(Connection con)Retrieve cached TCB parameters and apply them to the connection's options. |
void | updateShareOpts(Connection con)Store the connection's current TCB parameters into the cache. |
public TCBShare(I2PAppContext ctx, SimpleTimer2 timer)
ctx - the application contexttimer - the timerpublic void stop()
public void updateOptsFromShare(Connection con)
con - the connection to update from the cachepublic void updateShareOpts(Connection con)
con - the connection whose parameters to cache