Interface Band.Builder

  • All Known Implementing Classes:
    DefaultBand.Builder
    Enclosing interface:
    Band

    public static interface Band.Builder
    • Method Detail

      • withRate

        Band.Builder withRate​(long rate)
        Assigns a rate to this band. The units for this rate are defined in the encapsulating meter.
        Parameters:
        rate - a long value
        Returns:
        this
      • burstSize

        Band.Builder burstSize​(long burstSize)
        Assigns a burst size to this band. Only meaningful if the encapsulating meter is of burst type.
        Parameters:
        burstSize - a long value.
        Returns:
        this
      • dropPrecedence

        Band.Builder dropPrecedence​(short prec)
        Assigns the drop precedence for this band. Only meaningful if the band is of REMARK type.
        Parameters:
        prec - a short value
        Returns:
        this
      • build

        Band build()
        Builds the band.
        Returns:
        a band