|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.InNetMessagePool
public class InNetMessagePool
Manage a pool of inbound InNetMessages. This pool is filled by the Network communication system when it receives messages, and various jobs periodically retrieve them for processing.
Field Summary | |
---|---|
static boolean |
DEFAULT_DISPATCH_THREADED
|
static String |
PROP_DISPATCH_THREADED
If set to true, we will have two additional threads - one for dispatching tunnel data messages, and another for dispatching tunnel gateway messages. |
Constructor Summary | |
---|---|
InNetMessagePool(RouterContext context)
|
Method Summary | |
---|---|
int |
add(I2NPMessage messageBody,
RouterIdentity fromRouter,
Hash fromRouterHash)
Add a new message to the pool. |
int |
handleReplies(I2NPMessage messageBody)
|
HandlerJobBuilder |
registerHandlerJobBuilder(int i2npMessageType,
HandlerJobBuilder builder)
|
void |
renderStatusHTML(Writer out)
|
void |
restart()
does nothing since we aren't threaded |
void |
shutdown()
does nothing since we aren't threaded |
void |
startup()
does nothing since we aren't threaded |
HandlerJobBuilder |
unregisterHandlerJobBuilder(int i2npMessageType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_DISPATCH_THREADED
public static final boolean DEFAULT_DISPATCH_THREADED
Constructor Detail |
---|
public InNetMessagePool(RouterContext context)
Method Detail |
---|
public HandlerJobBuilder registerHandlerJobBuilder(int i2npMessageType, HandlerJobBuilder builder)
AIOOBE
- if i2npMessageType is greater than MAX_I2NP_MESSAGE_TYPEpublic HandlerJobBuilder unregisterHandlerJobBuilder(int i2npMessageType)
AIOOBE
- if i2npMessageType is greater than MAX_I2NP_MESSAGE_TYPEpublic int add(I2NPMessage messageBody, RouterIdentity fromRouter, Hash fromRouterHash)
public int handleReplies(I2NPMessage messageBody)
public void renderStatusHTML(Writer out)
renderStatusHTML
in interface Service
public void restart()
restart
in interface Service
public void shutdown()
shutdown
in interface Service
public void startup()
startup
in interface Service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |