public interface Flows extends GroupedAvp
5.3.10 Flows AVP The Flows AVP (AVP code 510) is of type Grouped, and it indicates IP flows via their flow identifiers. When reporting an out of credit condition, the Final-Unit-Action AVP indicates the termination action applied to the impacted flows. If no Flow-Number AVP(s) are supplied, the Flows AVP refers to all Flows matching the media component number. AVP Format: Flows ::= < AVP Header: 510 > {Media-Component-Number} *[Flow-Number] [Final-Unit-Action]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
FinalUnitAction |
getFinalUnitAction()
Returns the value of the Final-Unit-Action AVP, of type Enumerated.
|
long[] |
getFlowNumbers()
Returns the set of Flow-Number AVPs.
|
long |
getMediaComponentNumber()
Returns the value of the Media-Component-Number AVP, of type Unsigned32.
|
boolean |
hasFinalUnitAction()
Returns true if the Final-Unit-Action AVP is present in the Flows AVP.
|
boolean |
hasMediaComponentNumber()
Returns true if the Media-Component-Number AVP is present in the Flows AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Flows AVP.
|
void |
removeFinalUnitAction()
Removes the Final-Unit-Action AVP from the Flows AVP.
|
void |
removeFlowNumbers()
Removes all Flow-Number AVPs from the Flows AVP.
|
void |
removeMediaComponentNumber()
Removes the Media-Component-Number AVP from the Flows AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setFinalUnitAction(FinalUnitAction finalUnitAction)
Sets the value of the Final-Unit-Action AVP, of type Enumerated.
|
void |
setFlowNumber(long flowNumber)
Sets a single Flow-Number AVP in the Flows AVP, of type Unsigned32.
|
void |
setFlowNumbers(long[] flowNumbers)
Sets the set of Flow-Number AVPs, with all the values in the given array.
|
void |
setMediaComponentNumber(long mediaComponentNumber)
Sets the value of the Media-Component-Number AVP, of type Unsigned32.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasMediaComponentNumber()
long getMediaComponentNumber()
hasMediaComponentNumber()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Media-Component-Number AVP has not been set.void setMediaComponentNumber(long mediaComponentNumber)
void removeMediaComponentNumber()
long[] getFlowNumbers()
void setFlowNumber(long flowNumber)
void setFlowNumbers(long[] flowNumbers)
java.lang.NullPointerException
- if flowNumbers
is null
.void removeFlowNumbers()
boolean hasFinalUnitAction()
FinalUnitAction getFinalUnitAction()
void setFinalUnitAction(FinalUnitAction finalUnitAction)
java.lang.NullPointerException
- if finalUnitAction
is null
.void removeFinalUnitAction()
DiameterAvp[] getExtensionAvps()
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
AvpNotAllowedException
- if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)java.lang.NullPointerException
- if avps
is null
.void removeExtensionAvps()