Class PeerMixin

java.lang.Object
org.drasyl.handler.peers.Peer
org.drasyl.serialization.PeerMixin

@UnstableApi public abstract class PeerMixin extends Peer
  • Constructor Details

    • PeerMixin

      public PeerMixin(Role role, InetSocketAddress inetAddress, long sent, long last, long average, long best, long worst, double stDev)
  • Method Details

    • role

      public abstract Role role()
      Overrides:
      role in class Peer
    • inetAddress

      public abstract InetSocketAddress inetAddress()
      Overrides:
      inetAddress in class Peer
    • sent

      public abstract long sent()
      Overrides:
      sent in class Peer
      Returns:
      number of pings sent
    • last

      public abstract long last()
      Overrides:
      last in class Peer
      Returns:
      RTT of last ping
    • average

      public abstract double average()
      Overrides:
      average in class Peer
      Returns:
      average RTT
    • best

      public abstract long best()
      Overrides:
      best in class Peer
      Returns:
      best RTT
    • worst

      public abstract long worst()
      Overrides:
      worst in class Peer
      Returns:
      worst RTT
    • stDev

      public abstract double stDev()
      Overrides:
      stDev in class Peer
      Returns:
      RTT standard deviation