|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.OutNetMessagePool
public class OutNetMessagePool
Maintain a pool of OutNetMessages destined for other routers, organized by priority, expiring messages as necessary. This pool is populated by anything that wants to send a message, and the communication subsystem periodically retrieves messages for delivery.
Constructor Summary | |
---|---|
OutNetMessagePool(RouterContext context)
|
Method Summary | |
---|---|
void |
add(OutNetMessage msg)
Add a new message to the pool |
void |
clearExpired()
Clear any messages that have expired, enqueuing any appropriate jobs |
void |
dumpPoolInfo()
|
int |
getCount()
Retrieve the number of messages, regardless of priority. |
int |
getCount(int priority)
Retrieve the number of messages at the given priority. |
OutNetMessage |
getNext()
Remove the highest priority message, or null if none are available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutNetMessagePool(RouterContext context)
Method Detail |
---|
public OutNetMessage getNext()
public void add(OutNetMessage msg)
public void clearExpired()
public int getCount()
public int getCount(int priority)
public void dumpPoolInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |