public final class DefaultMeterRequest extends Object implements MeterRequest
Modifier and Type | Class and Description |
---|---|
static class |
DefaultMeterRequest.Builder |
MeterRequest.Type
Modifier and Type | Method and Description |
---|---|
ApplicationId |
appId()
The id of the application which created this meter.
|
Collection<Band> |
bands()
The collection of bands to apply on the dataplane.
|
static DefaultMeterRequest.Builder |
builder() |
Optional<MeterContext> |
context()
Returns the callback context for this meter.
|
DeviceId |
deviceId()
The target device for this meter.
|
boolean |
isBurst()
Signals whether this meter applies to bursts only.
|
String |
toString() |
Meter.Unit |
unit()
The unit used within this meter.
|
public DeviceId deviceId()
MeterRequest
deviceId
in interface MeterRequest
public ApplicationId appId()
MeterRequest
appId
in interface MeterRequest
public Meter.Unit unit()
MeterRequest
unit
in interface MeterRequest
public boolean isBurst()
MeterRequest
isBurst
in interface MeterRequest
public Collection<Band> bands()
MeterRequest
bands
in interface MeterRequest
public Optional<MeterContext> context()
MeterRequest
context
in interface MeterRequest
public static DefaultMeterRequest.Builder builder()