Interface Band

  • All Known Subinterfaces:
    BandEntry
    All Known Implementing Classes:
    DefaultBand

    public interface Band
    Represents a band used within a meter.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  Band.Builder  
      static class  Band.Type
      Specifies the type of band.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Long burst()
      The burst size at which the meter applies.
      long bytes()
      Return the bytes seen by this band.
      java.lang.Short dropPrecedence()
      Only meaningful in the case of a REMARK band type.
      long packets()
      Returns the packets seen by this band.
      long rate()
      The rate at which this meter applies.
      Band.Type type()
      Signals the type of band to create.
    • Method Detail

      • rate

        long rate()
        The rate at which this meter applies.
        Returns:
        the long value of the rate
      • burst

        java.lang.Long burst()
        The burst size at which the meter applies.
        Returns:
        the long value of the size
      • dropPrecedence

        java.lang.Short dropPrecedence()
        Only meaningful in the case of a REMARK band type. indicates by which amount the drop precedence of the packet should be increase if the band is exceeded.
        Returns:
        a short value
      • type

        Band.Type type()
        Signals the type of band to create.
        Returns:
        a band type
      • packets

        long packets()
        Returns the packets seen by this band.
        Returns:
        a long value
      • bytes

        long bytes()
        Return the bytes seen by this band.
        Returns:
        a byte counter