Class CreditControlFailureHandling
- java.lang.Object
-
- org.jainslee.resources.diameter.cca.types.CreditControlFailureHandling
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class CreditControlFailureHandling extends Object implements Serializable, Enumerated
Java class to represent the CreditControlFailureHandling enumerated type. Documentation from the relevant specification: The Credit-Control-Failure-Handling AVP (AVP Code 427) is of type Enumerated. The credit-control client uses information in this AVP to decide what to do if sending credit-control messages to the credit-control server has been, for instance, temporarily prevented due to a network problem. Depending on the service logic, the credit-control server can order the client to terminate the service immediately when there is a reason to believe that the service cannot be charged, or to try failover to an alternative server, if possible. Then the server could either terminate or grant the service, should the alternative connection also fail.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_CONTINUE
static int
_RETRY_AND_TERMINATE
static int
_TERMINATE
static CreditControlFailureHandling
CONTINUE
When the Credit-Control-Failure-Handling AVP is set to CONTINUE, the credit-control client SHOULD re-send the request to an alternative server in the case of transport or temporary failures, provided that a failover procedure is supported in the credit- control server and the credit-control client, and that an alternative server is available.static CreditControlFailureHandling
RETRY_AND_TERMINATE
When the Credit-Control-Failure-Handling AVP is set to RETRY_AND_TERMINATE, the credit-control client SHOULD re-send the request to an alternative server in the case of transport or temporary failures, provided that a failover procedure is supported in the credit-control server and the credit-control client, and that an alternative server is available.static CreditControlFailureHandling
TERMINATE
When the Credit-Control-Failure-Handling AVP is set to TERMINATE, the service MUST only be granted for as long as there is a connection to the credit-control server.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreditControlFailureHandling
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_TERMINATE
public static final int _TERMINATE
- See Also:
- Constant Field Values
-
_CONTINUE
public static final int _CONTINUE
- See Also:
- Constant Field Values
-
_RETRY_AND_TERMINATE
public static final int _RETRY_AND_TERMINATE
- See Also:
- Constant Field Values
-
TERMINATE
public static final CreditControlFailureHandling TERMINATE
When the Credit-Control-Failure-Handling AVP is set to TERMINATE, the service MUST only be granted for as long as there is a connection to the credit-control server. If the credit-control client does not receive any Credit-Control-Answer message within the Tx timer (as defined in section 13), the credit-control request is regarded as failed, and the end user's service session is terminated. This is the default behavior if the AVP isn't included in the reply from the authorization or credit-control server.
-
CONTINUE
public static final CreditControlFailureHandling CONTINUE
When the Credit-Control-Failure-Handling AVP is set to CONTINUE, the credit-control client SHOULD re-send the request to an alternative server in the case of transport or temporary failures, provided that a failover procedure is supported in the credit- control server and the credit-control client, and that an alternative server is available. Otherwise, the service SHOULD be granted, even if credit-control messages can't be delivered.
-
RETRY_AND_TERMINATE
public static final CreditControlFailureHandling RETRY_AND_TERMINATE
When the Credit-Control-Failure-Handling AVP is set to RETRY_AND_TERMINATE, the credit-control client SHOULD re-send the request to an alternative server in the case of transport or temporary failures, provided that a failover procedure is supported in the credit-control server and the credit-control client, and that an alternative server is available. Otherwise, the service SHOULD not be granted when the credit-control messages can't be delivered.
-
-
Method Detail
-
fromInt
public static CreditControlFailureHandling fromInt(int type)
-
getValue
public int getValue()
Description copied from interface:Enumerated
Return the value of this instance of this enumerated type.- Specified by:
getValue
in interfaceEnumerated
- Returns:
- value
-
-