public class Republish extends Object implements SimpleTimer.TimedEvent
This class periodically publishes the router's RouterInfo to the distributed network database (netdb) to ensure the router remains discoverable and reachable by other peers. Regular publication is essential for maintaining network connectivity and participation.
Publication Process:
Error Handling:
Clock Skew Detection:
Network Integration:
Regular publication is critical for router participation in the I2P network. Without periodic republishing, routers would become unreachable and unable to participate in tunnel creation or network routing.
| Constructor and Description |
|---|
Republish(RouterContext ctx)
Create a new router info republisher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
timeReached()
Publish the router's info to the network database.
|
public Republish(RouterContext ctx)
ctx - the router context for accessing router servicespublic void timeReached()
timeReached in interface SimpleTimer.TimedEvent