public static interface MeterRequest.Builder
Modifier and Type | Method and Description |
---|---|
MeterRequest |
add()
Requests the addition of a meter.
|
MeterRequest.Builder |
burst()
Sets this meter as applicable to burst traffic only.
|
MeterRequest.Builder |
forDevice(DeviceId deviceId)
Assigns the target device for this meter.
|
MeterRequest.Builder |
fromApp(ApplicationId appId)
Assigns the application that built this meter.
|
MeterRequest |
remove()
Requests the removal of a meter.
|
MeterRequest.Builder |
withBands(java.util.Collection<Band> bands)
Assigns bands to this meter.
|
MeterRequest.Builder |
withContext(MeterContext context)
Assigns an execution context for this meter request.
|
MeterRequest.Builder |
withUnit(Meter.Unit unit)
Assigns the @See Unit to use for this meter.
|
MeterRequest.Builder forDevice(DeviceId deviceId)
deviceId
- a device idMeterRequest.Builder fromApp(ApplicationId appId)
appId
- an application idMeterRequest.Builder withUnit(Meter.Unit unit)
unit
- a unitMeterRequest.Builder burst()
MeterRequest.Builder withBands(java.util.Collection<Band> bands)
bands
- a collection of bandsMeterRequest.Builder withContext(MeterContext context)
context
- a meter contextMeterRequest add()
MeterRequest remove()