Class DisconnectCause
- java.lang.Object
-
- org.jainslee.resources.diameter.base.types.DisconnectCause
-
- All Implemented Interfaces:
Serializable
,Enumerated
public class DisconnectCause extends Object implements Serializable, Enumerated
Java class to represent the DisconnectCause enumerated type. Documentation from the relevant specification: The Disconnect-Cause AVP (AVP Code 273) is of type Enumerated. A Diameter node MUST include this AVP in the Disconnect-Peer-Request message to inform the peer of the reason for its intention to shut down the transport connection. The following values are supported:- Author:
- Open Cloud
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
_BUSY
static int
_DO_NOT_WANT_TO_TALK_TO_YOU
static int
_REBOOTING
static DisconnectCause
BUSY
The peer's internal resources are constrained, and it has determined that the transport connection needs to be closed.static DisconnectCause
DO_NOT_WANT_TO_TALK_TO_YOU
The peer has determined that it does not see a need for the transport connection to exist, since it does not expect any messages to be exchanged in the near future.static DisconnectCause
REBOOTING
A scheduled reboot is imminent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisconnectCause
fromInt(int type)
int
getValue()
Return the value of this instance of this enumerated type.String
toString()
-
-
-
Field Detail
-
_REBOOTING
public static final int _REBOOTING
- See Also:
- Constant Field Values
-
_BUSY
public static final int _BUSY
- See Also:
- Constant Field Values
-
_DO_NOT_WANT_TO_TALK_TO_YOU
public static final int _DO_NOT_WANT_TO_TALK_TO_YOU
- See Also:
- Constant Field Values
-
REBOOTING
public static final DisconnectCause REBOOTING
A scheduled reboot is imminent. A receiver of a DPR with above result code MAY attempt reconnection.
-
BUSY
public static final DisconnectCause BUSY
The peer's internal resources are constrained, and it has determined that the transport connection needs to be closed. A receiver of a DPR with above result code SHOULD NOT attempt reconnection.
-
DO_NOT_WANT_TO_TALK_TO_YOU
public static final DisconnectCause DO_NOT_WANT_TO_TALK_TO_YOU
The peer has determined that it does not see a need for the transport connection to exist, since it does not expect any messages to be exchanged in the near future. A receiver of a DPR with above result code SHOULD NOT attempt reconnection.
-
-
Method Detail
-
fromInt
public static DisconnectCause 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
-
-