Class DefaultMeterRequest

  • All Implemented Interfaces:
    MeterRequest

    public final class DefaultMeterRequest
    extends java.lang.Object
    implements MeterRequest
    A default implementation of a meter.
    • Method Detail

      • appId

        public ApplicationId appId()
        Description copied from interface: MeterRequest
        The id of the application which created this meter.
        Specified by:
        appId in interface MeterRequest
        Returns:
        an application id
      • isBurst

        public boolean isBurst()
        Description copied from interface: MeterRequest
        Signals whether this meter applies to bursts only.
        Specified by:
        isBurst in interface MeterRequest
        Returns:
        a boolean
      • bands

        public java.util.Collection<Band> bands()
        Description copied from interface: MeterRequest
        The collection of bands to apply on the dataplane.
        Specified by:
        bands in interface MeterRequest
        Returns:
        a collection of bands.
      • context

        public java.util.Optional<MeterContext> context()
        Description copied from interface: MeterRequest
        Returns the callback context for this meter.
        Specified by:
        context in interface MeterRequest
        Returns:
        an optional meter context
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object