public static final class DefaultMeterFeatures.Builder extends Object implements MeterFeatures.Builder
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MeterFeatures |
build()
Builds the Meter Features based on the specified parameters.
|
MeterFeatures.Builder |
forDevice(DeviceId deviceId)
Assigns the target device for this meter features.
|
MeterFeatures.Builder |
hasBurst(boolean hasBurst)
Assigns the burst capabilities.
|
MeterFeatures.Builder |
hasStats(boolean hasStats)
Assigns the stats capabilities.
|
MeterFeatures.Builder |
withBandTypes(Set<Band.Type> types)
Assigns the band types for this meter features.
|
MeterFeatures.Builder |
withFeatures(Set<MeterFeaturesFlag> featureFlags)
Assigns the features for this meter features for OF1.5.
|
MeterFeatures.Builder |
withMaxBands(short maxBands)
Assigns the max bands value for this meter features.
|
MeterFeatures.Builder |
withMaxColors(short maxColors)
Assigns the max colors value for this meter features.
|
MeterFeatures.Builder |
withMaxMeters(long maxMeter)
Assigns the max meters value for this meter features.
|
MeterFeatures.Builder |
withUnits(Set<Meter.Unit> units)
Assigns the capabilities for this meter features.
|
public MeterFeatures.Builder forDevice(DeviceId deviceId)
MeterFeatures.BuilderforDevice in interface MeterFeatures.BuilderdeviceId - a device idpublic MeterFeatures.Builder withMaxMeters(long maxMeter)
MeterFeatures.BuilderwithMaxMeters in interface MeterFeatures.BuildermaxMeter - the maximum meters availablepublic MeterFeatures.Builder withMaxBands(short maxBands)
MeterFeatures.BuilderwithMaxBands in interface MeterFeatures.BuildermaxBands - the maximum bands available.public MeterFeatures.Builder withMaxColors(short maxColors)
MeterFeatures.BuilderwithMaxColors in interface MeterFeatures.BuildermaxColors - the maximum colors available.public MeterFeatures.Builder withBandTypes(Set<Band.Type> types)
MeterFeatures.BuilderwithBandTypes in interface MeterFeatures.Buildertypes - the band types available.public MeterFeatures.Builder withUnits(Set<Meter.Unit> units)
MeterFeatures.BuilderwithUnits in interface MeterFeatures.Builderunits - the units availablepublic MeterFeatures.Builder hasBurst(boolean hasBurst)
MeterFeatures.BuilderhasBurst in interface MeterFeatures.BuilderhasBurst - if the burst is supportedpublic MeterFeatures.Builder hasStats(boolean hasStats)
MeterFeatures.BuilderhasStats in interface MeterFeatures.BuilderhasStats - if the statistics are supportedpublic MeterFeatures.Builder withFeatures(Set<MeterFeaturesFlag> featureFlags)
MeterFeatures.BuilderwithFeatures in interface MeterFeatures.BuilderfeatureFlags - if meter features flags are supportedpublic MeterFeatures build()
MeterFeatures.Builderbuild in interface MeterFeatures.Builder