public final class DefaultMeterRequest extends java.lang.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.
|
java.util.Collection<Band> |
bands()
The collection of bands to apply on the dataplane.
|
static DefaultMeterRequest.Builder |
builder() |
java.util.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.
|
java.lang.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 java.util.Collection<Band> bands()
MeterRequest
bands
in interface MeterRequest
public java.util.Optional<MeterContext> context()
MeterRequest
context
in interface MeterRequest
public static DefaultMeterRequest.Builder builder()
public java.lang.String toString()
toString
in class java.lang.Object