public static final class DefaultMeter.Builder extends java.lang.Object implements Meter.Builder
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DefaultMeter |
build()
Builds the meter based on the specified parameters.
|
Meter.Builder |
burst()
Sets this meter as applicable to burst traffic only.
|
Meter.Builder |
forDevice(DeviceId deviceId)
Assigns the target device for this meter.
|
Meter.Builder |
fromApp(ApplicationId appId)
Assigns the application that built this meter.
|
Meter.Builder |
withBands(java.util.Collection<Band> bands)
Assigns bands to this meter.
|
Meter.Builder |
withId(MeterId id)
Assigns the id to this meter.
|
Meter.Builder |
withUnit(Meter.Unit unit)
Assigns the @See Unit to use for this meter.
|
public Meter.Builder forDevice(DeviceId deviceId)
Meter.Builder
forDevice
in interface Meter.Builder
deviceId
- a device idpublic Meter.Builder withId(MeterId id)
Meter.Builder
withId
in interface Meter.Builder
id
- a epublic Meter.Builder fromApp(ApplicationId appId)
Meter.Builder
fromApp
in interface Meter.Builder
appId
- an application idpublic Meter.Builder withUnit(Meter.Unit unit)
Meter.Builder
withUnit
in interface Meter.Builder
unit
- a unitpublic Meter.Builder burst()
Meter.Builder
burst
in interface Meter.Builder
public Meter.Builder withBands(java.util.Collection<Band> bands)
Meter.Builder
withBands
in interface Meter.Builder
bands
- a collection of bandspublic DefaultMeter build()
Meter.Builder
build
in interface Meter.Builder