public static final class DefaultMeterFeatures.Builder extends java.lang.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(java.util.Set<Band.Type> types)
Assigns the band types for this meter features.
|
MeterFeatures.Builder |
withFeatures(java.util.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(java.util.Set<Meter.Unit> units)
Assigns the capabilities for this meter features.
|
public MeterFeatures.Builder forDevice(DeviceId deviceId)
MeterFeatures.Builder
forDevice
in interface MeterFeatures.Builder
deviceId
- a device idpublic MeterFeatures.Builder withMaxMeters(long maxMeter)
MeterFeatures.Builder
withMaxMeters
in interface MeterFeatures.Builder
maxMeter
- the maximum meters availablepublic MeterFeatures.Builder withMaxBands(short maxBands)
MeterFeatures.Builder
withMaxBands
in interface MeterFeatures.Builder
maxBands
- the maximum bands available.public MeterFeatures.Builder withMaxColors(short maxColors)
MeterFeatures.Builder
withMaxColors
in interface MeterFeatures.Builder
maxColors
- the maximum colors available.public MeterFeatures.Builder withBandTypes(java.util.Set<Band.Type> types)
MeterFeatures.Builder
withBandTypes
in interface MeterFeatures.Builder
types
- the band types available.public MeterFeatures.Builder withUnits(java.util.Set<Meter.Unit> units)
MeterFeatures.Builder
withUnits
in interface MeterFeatures.Builder
units
- the units availablepublic MeterFeatures.Builder hasBurst(boolean hasBurst)
MeterFeatures.Builder
hasBurst
in interface MeterFeatures.Builder
hasBurst
- if the burst is supportedpublic MeterFeatures.Builder hasStats(boolean hasStats)
MeterFeatures.Builder
hasStats
in interface MeterFeatures.Builder
hasStats
- if the statistics are supportedpublic MeterFeatures.Builder withFeatures(java.util.Set<MeterFeaturesFlag> featureFlags)
MeterFeatures.Builder
withFeatures
in interface MeterFeatures.Builder
featureFlags
- if meter features flags are supportedpublic MeterFeatures build()
MeterFeatures.Builder
build
in interface MeterFeatures.Builder