java.lang.Object
net.i2p.client.I2PSession.TunnelPair
Enclosing interface:
I2PSession

public static class I2PSession.TunnelPairextends Object
Simple holder for tunnel pair information.
  • Field Details

    • _inboundTunnelId

      private final TunnelId _inboundTunnelId
      The tunnel messages arrive on.
    • _outboundTunnelId

      private final TunnelId _outboundTunnelId
      The tunnel messages are sent on.
  • Constructor Details

    • TunnelPair

      public TunnelPair(TunnelId inbound, TunnelId outbound)
      Inbound tunnel ID.
      Parameters:
      inbound - inbound tunnel ID
      outbound - outbound tunnel ID
  • Method Details

    • getInboundTunnelId

      public TunnelId getInboundTunnelId()
      Inbound tunnel for this pair.
      Returns:
      the inbound tunnel ID
    • getOutboundTunnelId

      public TunnelId getOutboundTunnelId()
      Outbound tunnel for this pair.
      Returns:
      the outbound tunnel ID
    • isEmpty

      public boolean isEmpty()
      Whether neither tunnel is set.
      Returns:
      true if both tunnel IDs are null