net.java.slee.resource.diameter.base.events.avp
Class AccountingRealtimeRequiredType

java.lang.Object
  extended by net.java.slee.resource.diameter.base.events.avp.AccountingRealtimeRequiredType
All Implemented Interfaces:
java.io.Serializable, Enumerated

public class AccountingRealtimeRequiredType
extends java.lang.Object
implements java.io.Serializable, Enumerated

Java class to represent the AccountingRealtimeRequired enumerated type.

Documentation from the relevant specification:

The Accounting-Realtime-Required AVP (AVP Code 483) is of type Enumerated and is sent from the Diameter home authorization server to the Diameter client or in the Accounting-Answer from the accounting server. The client uses information in this AVP to decide what to do if the sending of accounting records to the accounting server has been temporarily prevented due to, for instance, a network problem.

Author:
Open Cloud
See Also:
Serialized Form

Field Summary
static int _DELIVER_AND_GRANT
           
static int _GRANT_AND_LOSE
           
static int _GRANT_AND_STORE
           
static AccountingRealtimeRequiredType DELIVER_AND_GRANT
          The AVP with Value field set to DELIVER_AND_GRANT means that the service MUST only be granted as long as there is a connection to an accounting server.
static AccountingRealtimeRequiredType GRANT_AND_LOSE
          The AVP with Value field set to GRANT_AND_LOSE means that service SHOULD be granted even if the records can not be delivered or stored.
static AccountingRealtimeRequiredType GRANT_AND_STORE
          The AVP with Value field set to GRANT_AND_STORE means that service SHOULD be granted if there is a connection, or as long as records can still be stored as described in Section 9.4.
 
Method Summary
static AccountingRealtimeRequiredType fromInt(int type)
           
 int getValue()
          Return the value of this instance of this enumerated type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_DELIVER_AND_GRANT

public static final int _DELIVER_AND_GRANT
See Also:
Constant Field Values

_GRANT_AND_STORE

public static final int _GRANT_AND_STORE
See Also:
Constant Field Values

_GRANT_AND_LOSE

public static final int _GRANT_AND_LOSE
See Also:
Constant Field Values

DELIVER_AND_GRANT

public static final AccountingRealtimeRequiredType DELIVER_AND_GRANT
The AVP with Value field set to DELIVER_AND_GRANT means that the service MUST only be granted as long as there is a connection to an accounting server. Note that the set of alternative accounting servers are treated as one server in this sense. Having to move the accounting record stream to a backup server is not a reason to discontinue the service to the user.


GRANT_AND_STORE

public static final AccountingRealtimeRequiredType GRANT_AND_STORE
The AVP with Value field set to GRANT_AND_STORE means that service SHOULD be granted if there is a connection, or as long as records can still be stored as described in Section 9.4. This is the default behavior if the AVP isn't included in the reply from the authorization server.


GRANT_AND_LOSE

public static final AccountingRealtimeRequiredType GRANT_AND_LOSE
The AVP with Value field set to GRANT_AND_LOSE means that service SHOULD be granted even if the records can not be delivered or stored.

Method Detail

fromInt

public static AccountingRealtimeRequiredType 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 interface Enumerated
Returns:
value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.