public static final class DefaultMeter.Builder extends 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(Collection<Band> bands)
Assigns bands to this meter.
|
Meter.Builder |
withCellId(MeterCellId cellId)
Assigns the id to this meter cell.
|
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.BuilderforDevice in interface Meter.BuilderdeviceId - a device idpublic Meter.Builder withId(MeterId id)
Meter.BuilderwithId in interface Meter.Builderid - a epublic Meter.Builder withCellId(MeterCellId cellId)
Meter.BuilderwithCellId in interface Meter.BuildercellId - a meter cell identifierpublic Meter.Builder fromApp(ApplicationId appId)
Meter.BuilderfromApp in interface Meter.BuilderappId - an application idpublic Meter.Builder withUnit(Meter.Unit unit)
Meter.BuilderwithUnit in interface Meter.Builderunit - a unitpublic Meter.Builder burst()
Meter.Builderburst in interface Meter.Builderpublic Meter.Builder withBands(Collection<Band> bands)
Meter.BuilderwithBands in interface Meter.Builderbands - a collection of bandspublic DefaultMeter build()
Meter.Builderbuild in interface Meter.Builder