Enum SmppErrorType
- java.lang.Object
-
- java.lang.Enum<SmppErrorType>
-
- com.opencloud.slee.resources.smpp.SmppErrorType
-
- All Implemented Interfaces:
Serializable
,Comparable<SmppErrorType>
public enum SmppErrorType extends Enum<SmppErrorType>
- Author:
- OpenCloud
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SMPP_ERROR
SMPP_ERROR_INVALID_RESPONSE
The stack received an invalid response from the other node.SMPP_ERROR_NONE
SMPP_TIMEOUT_ENQUIRE_LINK
This session's Enquire Link timer has fired.SMPP_TIMEOUT_INACTIVITY
This session's Inactivity timer has fired.SMPP_TIMEOUT_RESPONSE_RECEIVED
The stack has timed out waiting for a response to be received from the other node in the session.SMPP_TIMEOUT_RESPONSE_SENT
The stack has timed out waiting for a response to be sent to the other node in the session.SMPP_TIMEOUT_SESSION_INIT
This session's Session Init timer has fired, meaning that the session has been too long in the `OPEN` or `OUTBOUND` states before a successful bind.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCode()
String
getEventName()
static SmppErrorType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SmppErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SMPP_ERROR_NONE
public static final SmppErrorType SMPP_ERROR_NONE
-
SMPP_ERROR
public static final SmppErrorType SMPP_ERROR
-
SMPP_ERROR_INVALID_RESPONSE
public static final SmppErrorType SMPP_ERROR_INVALID_RESPONSE
The stack received an invalid response from the other node. The offending response PDU can be obtained usingSmppErrorEvent.getMessage()
.
-
SMPP_TIMEOUT_SESSION_INIT
public static final SmppErrorType SMPP_TIMEOUT_SESSION_INIT
This session's Session Init timer has fired, meaning that the session has been too long in the `OPEN` or `OUTBOUND` states before a successful bind. The service should close the session.
-
SMPP_TIMEOUT_ENQUIRE_LINK
public static final SmppErrorType SMPP_TIMEOUT_ENQUIRE_LINK
This session's Enquire Link timer has fired. The service should send an `ENQUIRE_LINK` request to the peer to confirm that the session is still alive.
-
SMPP_TIMEOUT_INACTIVITY
public static final SmppErrorType SMPP_TIMEOUT_INACTIVITY
This session's Inactivity timer has fired. It has been too long since the last transaction, the service should consider the session to have died and close it.
-
SMPP_TIMEOUT_RESPONSE_RECEIVED
public static final SmppErrorType SMPP_TIMEOUT_RESPONSE_RECEIVED
The stack has timed out waiting for a response to be received from the other node in the session. TheSmppErrorEvent.getMessage()
method returns the original request. The service should consider the request to have failed, and may re-send or reconnect as appropriate.
-
SMPP_TIMEOUT_RESPONSE_SENT
public static final SmppErrorType SMPP_TIMEOUT_RESPONSE_SENT
The stack has timed out waiting for a response to be sent to the other node in the session. TheSmppErrorEvent.getMessage()
method returns the original request. The service should consider the request to have failed, and send an error response PDU or generick_nack to the other node.
-
-
Method Detail
-
values
public static SmppErrorType[] 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 (SmppErrorType c : SmppErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SmppErrorType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getEventName
public String getEventName()
-
getErrorCode
public int getErrorCode()
-
-