net.java.slee.resource.diameter.cca.events.avp
Enum CreditControlFailureHandlingType

java.lang.Object
  extended by java.lang.Enum<CreditControlFailureHandlingType>
      extended by net.java.slee.resource.diameter.cca.events.avp.CreditControlFailureHandlingType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CreditControlFailureHandlingType>, net.java.slee.resource.diameter.base.events.avp.Enumerated

public enum CreditControlFailureHandlingType
extends java.lang.Enum<CreditControlFailureHandlingType>
implements net.java.slee.resource.diameter.base.events.avp.Enumerated

8.14. Credit-Control-Failure-Handling AVP


   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.

   TERMINATE                       0
      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                       1
      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            2
      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.
      

Author:
Bartosz Baranowski , Alexandre Mendonca

Enum Constant Summary
CONTINUE
           
RETRY_AND_TERMINATE
           
TERMINATE
           
 
Method Summary
static CreditControlFailureHandlingType fromInt(int presumableValue)
           
 int getValue()
           
static CreditControlFailureHandlingType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CreditControlFailureHandlingType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TERMINATE

public static final CreditControlFailureHandlingType TERMINATE

CONTINUE

public static final CreditControlFailureHandlingType CONTINUE

RETRY_AND_TERMINATE

public static final CreditControlFailureHandlingType RETRY_AND_TERMINATE
Method Detail

values

public static CreditControlFailureHandlingType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CreditControlFailureHandlingType c : CreditControlFailureHandlingType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CreditControlFailureHandlingType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public int getValue()
Specified by:
getValue in interface net.java.slee.resource.diameter.base.events.avp.Enumerated

fromInt

public static CreditControlFailureHandlingType fromInt(int presumableValue)
                                                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException


Copyright © 2011. All Rights Reserved.