java.lang.Object
net.i2p.data.i2cp.RequestLeaseSetMessage.TunnelEndpoint
All Implemented Interfaces:
Serializable
Enclosing class:
RequestLeaseSetMessage

private static class RequestLeaseSetMessage.TunnelEndpointextends Object implements Serializable
One tunnel endpoint of the lease set.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      The serialization version of the endpoint.
      See Also:
    • _router

      private final transient Hash _router
      The gateway router's hash.
    • _tunnelId

      private final transient TunnelId _tunnelId
      The gateway's tunnel id.
  • Constructor Details

    • TunnelEndpoint

      public TunnelEndpoint(Hash router, TunnelId id)
      One requested tunnel, pairing a router with one of its tunnel ids.
      Parameters:
      router - the gateway router's hash
      id - the gateway's tunnel id
  • Method Details

    • getRouter

      public Hash getRouter()
      Returns the router identity of this tunnel.
      Returns:
      the identity hash of this tunnel's gateway
    • getTunnelId

      public TunnelId getTunnelId()
      Tunnel this endpoint reaches the router over.
      Returns:
      the tunnel id, never null