Package net.i2p.router
Class ClientMessagePool
- java.lang.Object
-
- net.i2p.router.ClientMessagePool
-
public class ClientMessagePool extends Object
Manage all of the inbound and outbound client messages maintained by the router. The ClientManager subsystem fetches messages from this for locally deliverable messages and adds in remotely deliverable messages. Remotely deliverable messages are picked up by interested jobs and processed and transformed into an OutNetMessage to be eventually placed in the OutNetMessagePool.
-
-
Constructor Summary
Constructors Constructor Description ClientMessagePool(RouterContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(ClientMessage msg)
Add a new message to the pool.void
add(ClientMessage msg, boolean isDefinitelyRemote)
If we're coming from the client subsystem itself, we already know whether the target is definitely remote and as such don't need to recheck ourselves, but if we aren't certain, we want it to check for us.void
restart()
void
shutdown()
-
-
-
Constructor Detail
-
ClientMessagePool
public ClientMessagePool(RouterContext context)
-
-
Method Detail
-
shutdown
public void shutdown()
- Since:
- 0.8.8
-
restart
public void restart()
- Since:
- 0.8.8
-
add
public void add(ClientMessage msg)
Add a new message to the pool. The message can either be locally or remotely destined.
-
add
public void add(ClientMessage msg, boolean isDefinitelyRemote)
If we're coming from the client subsystem itself, we already know whether the target is definitely remote and as such don't need to recheck ourselves, but if we aren't certain, we want it to check for us.- Parameters:
isDefinitelyRemote
- true if we know for sure that the target is not local
-
-