java.lang.Object
net.i2p.router.OutNetMessagePool
Routes outbound messages to the communication system for delivery. Validates messages, manages reply selectors, and coordinates with the message registry for reliable delivery.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RouterContextThe router context the pool belongs to.private final LogLogger for this class.Constructor Summary
ConstructorsConstructorDescriptionOutNetMessagePool(RouterContext context) Retains the context and opens the pool's log.Method Summary
Modifier and TypeMethodDescriptionvoidadd(OutNetMessage msg) Add a new outbound network message to the pool for delivery.private booleanvalidate(OutNetMessage msg) Validate an outbound message before adding it to the pool.
Field Details
_log
Logger for this class._context
The router context the pool belongs to.
Constructor Details
OutNetMessagePool
Retains the context and opens the pool's log.- Parameters:
context- the router context whose transport and log manager are used
Method Details
add
Add a new outbound network message to the pool for delivery. The message will be validated before being queued.- Parameters:
msg- the OutNetMessage to add
validate
Validate an outbound message before adding it to the pool.- Parameters:
msg- the message to validate- Returns:
- true if the message is valid and should be processed