java.lang.Object
net.i2p.client.streaming.impl.TCBShare.Entry
Enclosing class:
TCBShare

private class TCBShare.Entryextends Object
A cached entry holding dampened TCB parameters for a remote peer.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
    The round trip time estimate, in ms.
    (package private) int
    The RTT deviation estimate.
    (package private) long
    When the entry was last updated.
    (package private) int
    The congestion window estimate.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entry(int ms, int wdw, int rttDev)
    Creates a new entry with the given initial values.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    int
    Returns the round trip time estimate.
    int
    Returns the RTT deviation estimate.
    int
    Returns the congestion window estimate.
    boolean
    Checks whether the entry has gone unused past the expire time.
    void
    setRTT(int ms)
    Sets the round trip time estimate.
    void
    setRTTDev(int count)
    Sets the RTT deviation estimate.
    void
    setWindowSize(int wdw)
    Sets the congestion window estimate.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _rtt

      int _rtt
      The round trip time estimate, in ms.
    • _wdw

      int _wdw
      The congestion window estimate.
    • _rttDev

      int _rttDev
      The RTT deviation estimate.
    • _updated

      long _updated
      When the entry was last updated.
  • Constructor Details

    • Entry

      public Entry(int ms, int wdw, int rttDev)
      Creates a new entry with the given initial values.
      Parameters:
      ms - the initial RTT in milliseconds
      wdw - the initial window size
      rttDev - the initial RTT deviation
  • Method Details

    • getRTT

      public int getRTT()
      Returns the round trip time estimate.
      Returns:
      the estimate, in ms
    • setRTT

      public void setRTT(int ms)
      Sets the round trip time estimate.
      Parameters:
      ms - the estimate, in ms
    • getRTTDev

      public int getRTTDev()
      Returns the RTT deviation estimate.
      Returns:
      the estimate, in ms
    • setRTTDev

      public void setRTTDev(int count)
      Sets the RTT deviation estimate.
      Parameters:
      count - the new RTT deviation sample, in ms
    • getWindowSize

      public int getWindowSize()
      Returns the congestion window estimate.
      Returns:
      the estimate, in bytes
    • setWindowSize

      public void setWindowSize(int wdw)
      Sets the congestion window estimate.
      Parameters:
      wdw - the new window sample, in bytes
    • isExpired

      public boolean isExpired()
      Checks whether the entry has gone unused past the expire time.
      Returns:
      true if expired