public interface TunnelStatusListener
Listener for tunnel status changes. Implemented by streaming library to react to tunnel test failures and removals.
Method Summary
All MethodsModifier and TypeMethodDescriptionvoidpoolShuttingDown(String poolName, boolean isInbound) Called when a tunnel pool is being shut down (all tunnels being removed).voidtunnelFailed(String poolName, boolean isInbound) Called when a tunnel has failed completely (max consecutive test failures reached).voidtunnelRemoved(TunnelRemovalEvent event) Called when a tunnel is removed from a client tunnel pool.
Method Details
tunnelFailed
Called when a tunnel has failed completely (max consecutive test failures reached). The listener should trigger connection failover to new tunnels.- Parameters:
poolName- the name of the tunnel pool (e.g., "I2P HTTP Proxy", "I2P IRC Network")isInbound- true for inbound tunnel, false for outbound
tunnelRemoved
Called when a tunnel is removed from a client tunnel pool. The listener should gracefully handle connection migration to remaining tunnels.- Parameters:
event- the tunnel removal event containing details about the removed tunnel
poolShuttingDown
Called when a tunnel pool is being shut down (all tunnels being removed). The listener should prepare for connection termination or failover.- Parameters:
poolName- the name of the tunnel poolisInbound- true for inbound tunnel pool, false for outbound