Class DirectDebitingFailureHandling
- java.lang.Object
-
- org.jainslee.resources.diameter.cca.types.DirectDebitingFailureHandling
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class DirectDebitingFailureHandling extends Object implements Serializable, Enumerated
Java class to represent the DirectDebitingFailureHandling enumerated type. Documentation from the relevant specification: The Direct-Debiting-Failure-Handling AVP (AVP Code 428) is of type Enumerated. The credit-control client uses information in this AVP to decide what to do if sending credit-control messages (Requested- Action AVP set to DIRECT_DEBITING) to the credit-control server has been, for instance, temporarily prevented due to a network problem.- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_CONTINUE
static int
_TERMINATE_OR_BUFFER
static DirectDebitingFailureHandling
CONTINUE
When the Direct-Debiting-Failure-Handling AVP is set to CONTINUE, the service SHOULD be granted, even if credit-control messages can't be delivered, and the request should be deleted.static DirectDebitingFailureHandling
TERMINATE_OR_BUFFER
When the Direct-Debiting-Failure-Handling AVP is set to TERMINATE_OR_BUFFER, the service MUST 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 DirectDebitingFailureHandling
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_TERMINATE_OR_BUFFER
public static final int _TERMINATE_OR_BUFFER
- See Also:
- Constant Field Values
-
_CONTINUE
public static final int _CONTINUE
- See Also:
- Constant Field Values
-
TERMINATE_OR_BUFFER
public static final DirectDebitingFailureHandling TERMINATE_OR_BUFFER
When the Direct-Debiting-Failure-Handling AVP is set to TERMINATE_OR_BUFFER, the service MUST 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. The client SHOULD terminate the service if it can determine from the failed answer that units have not been debited. Otherwise the credit-control client SHOULD grant the service, store the request in application level non-volatile storage, and try to re-send the request. These requests MUST be marked as possible duplicates by setting the T- flag in the command header as described in [DIAMBASE] section 3. This is the default behavior if the AVP isn't included in the reply from the authorization server.
-
CONTINUE
public static final DirectDebitingFailureHandling CONTINUE
When the Direct-Debiting-Failure-Handling AVP is set to CONTINUE, the service SHOULD be granted, even if credit-control messages can't be delivered, and the request should be deleted.
-
-
Method Detail
-
fromInt
public static DirectDebitingFailureHandling 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
-
-