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(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.
|
Meter.Builder forDevice(DeviceId deviceId)
deviceId
- a device idMeter.Builder withId(MeterId id)
id
- a eMeter.Builder fromApp(ApplicationId appId)
appId
- an application idMeter.Builder withUnit(Meter.Unit unit)
unit
- a unitMeter.Builder burst()
Meter.Builder withBands(java.util.Collection<Band> bands)
bands
- a collection of bandsMeter build()