Interface Band

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

    public interface Band
    Represents a band used within a meter.
    • Method Detail

      • rate

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

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

        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