Class TrafficSummary<T>


  • public class TrafficSummary<T>
    extends Object
    Total bytes in/out related to some entity.
    • Method Detail

      • getEntity

        public T getEntity()
      • getBytesIn

        public long getBytesIn()
      • getBytesOut

        public long getBytesOut()
      • getBytesInOut

        public BytesInOut getBytesInOut()
      • isCongestionEncountered

        public boolean isCongestionEncountered()
      • isNonEcnCapableTransport

        public boolean isNonEcnCapableTransport()
      • ecnInfo

        public int ecnInfo()
        Combines the two booleans isCongestionEncountered() and isNonEcnCapableTransport() that capture information about encountered ecn values into a single integer. The resulting integers are:
        • 0: !nonEcnCapableTransport && !congestionEncountered
        • 1: nonEcnCapableTransport && !congestionEncountered
        • 2: !nonEcnCapableTransport && congestionEncountered
        • 3: nonEcnCapableTransport && congestionEncountered
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object