Class DefaultBand.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withRate

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

        public Band.Builder burstSize​(long burstSize)
        Description copied from interface: Band.Builder
        Assigns a burst size to this band. Only meaningful if the encapsulating meter is of burst type.
        Specified by:
        burstSize in interface Band.Builder
        Parameters:
        burstSize - a long value.
        Returns:
        this
      • dropPrecedence

        public Band.Builder dropPrecedence​(short prec)
        Description copied from interface: Band.Builder
        Assigns the drop precedence for this band. Only meaningful if the band is of REMARK type.
        Specified by:
        dropPrecedence in interface Band.Builder
        Parameters:
        prec - a short value
        Returns:
        this