public static interface Meter.Builder
Modifier and Type | Method and Description |
---|---|
Meter |
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 meterId)
Assigns the id to this meter cell.
|
Meter.Builder |
withId(MeterId id)
Deprecated.
in Nightingale release (version 1.13.0). Use
withCellId(MeterCellId) instead. |
Meter.Builder |
withUnit(Meter.Unit unit)
Assigns the @See Unit to use for this meter.
|
Meter.Builder forDevice(DeviceId deviceId)
deviceId
- a device id@Deprecated Meter.Builder withId(MeterId id)
withCellId(MeterCellId)
instead.id
- a eMeter.Builder withCellId(MeterCellId meterId)
meterId
- a meter cell identifierMeter.Builder fromApp(ApplicationId appId)
appId
- an application idMeter.Builder withUnit(Meter.Unit unit)
unit
- a unitMeter.Builder burst()
Meter.Builder withBands(Collection<Band> bands)
bands
- a collection of bandsMeter build()