public interface TunnelStatusListener
Listener for tunnel status changes. Implemented by streaming library to react to tunnel test failures and removals.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    void
    poolShuttingDown(String poolName, boolean isInbound)
    Called when a tunnel pool is being shut down (all tunnels being removed).
    void
    tunnelFailed(String poolName, boolean isInbound)
    Called when a tunnel has failed completely (max consecutive test failures reached).
    void
    Called when a tunnel is removed from a client tunnel pool.
  • Method Details

    • tunnelFailed

      void tunnelFailed(String poolName, boolean isInbound)
      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

      void tunnelRemoved(TunnelRemovalEvent event)
      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

      void poolShuttingDown(String poolName, boolean isInbound)
      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 pool
      isInbound - true for inbound tunnel pool, false for outbound