public interface AllocationRetentionPriority extends GroupedAvp
5.3.32 Allocation-Retention-Priority The Allocation-Retention-Priority AVP (AVP code 1034) is of type Grouped, and it is used to indicate the priority of allocation and retention, the pre-emption capability and pre-emption vulnerability for the SDF if provided within the QoS-Information-AVP or for the EPS default bearer if provided within the Default-EPS-Bearer-QoS AVP. The Priority-Level AVP of the default bearer should be set to a sufficiently high level of priority and the ARP pre-emption vulnerability of the default bearer should be set appropriately to minimize the risk for unexpected PDN disconnection or UE detach from the network according to operator specific policies. AVP Format: Allocation-Retention-Priority ::= < AVP Header: 1034 > { Priority-Level } [ Pre-emption-Capability ] [ Pre-emption-Vulnerability ]Note:
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
Modifier and Type | Method and Description |
---|---|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs.
|
PreEmptionCapability |
getPreEmptionCapability()
Returns the value of the Pre-emption-Capability AVP, of type Enumerated.
|
PreEmptionVulnerability |
getPreEmptionVulnerability()
Returns the value of the Pre-emption-Vulnerability AVP, of type Enumerated.
|
long |
getPriorityLevel()
Returns the value of the Priority-Level AVP, of type Unsigned32.
|
boolean |
hasPreEmptionCapability()
Returns true if the Pre-emption-Capability AVP is present in the Allocation-Retention-Priority AVP.
|
boolean |
hasPreEmptionVulnerability()
Returns true if the Pre-emption-Vulnerability AVP is present in the Allocation-Retention-Priority AVP.
|
boolean |
hasPriorityLevel()
Returns true if the Priority-Level AVP is present in the Allocation-Retention-Priority AVP.
|
void |
removeExtensionAvps()
Removes all extension AVPs from the Allocation-Retention-Priority AVP.
|
void |
removePreEmptionCapability()
Removes the Pre-emption-Capability AVP from the Allocation-Retention-Priority AVP.
|
void |
removePreEmptionVulnerability()
Removes the Pre-emption-Vulnerability AVP from the Allocation-Retention-Priority AVP.
|
void |
removePriorityLevel()
Removes the Priority-Level AVP from the Allocation-Retention-Priority AVP.
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.
|
void |
setPreEmptionCapability(PreEmptionCapability preEmptionCapability)
Sets the value of the Pre-emption-Capability AVP, of type Enumerated.
|
void |
setPreEmptionVulnerability(PreEmptionVulnerability preEmptionVulnerability)
Sets the value of the Pre-emption-Vulnerability AVP, of type Enumerated.
|
void |
setPriorityLevel(long priorityLevel)
Sets the value of the Priority-Level AVP, of type Unsigned32.
|
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorID, groupedAvpValue, intValue, longValue, stringValue
boolean hasPriorityLevel()
long getPriorityLevel()
hasPriorityLevel()
to check the existence of this AVP.java.lang.IllegalStateException
- if the Priority-Level AVP has not been set.void setPriorityLevel(long priorityLevel)
void removePriorityLevel()
boolean hasPreEmptionCapability()
PreEmptionCapability getPreEmptionCapability()
void setPreEmptionCapability(PreEmptionCapability preEmptionCapability)
java.lang.NullPointerException
- if preEmptionCapability
is null
.void removePreEmptionCapability()
boolean hasPreEmptionVulnerability()
PreEmptionVulnerability getPreEmptionVulnerability()
void setPreEmptionVulnerability(PreEmptionVulnerability preEmptionVulnerability)
java.lang.NullPointerException
- if preEmptionVulnerability
is null
.void removePreEmptionVulnerability()
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()