public class SmppErrorEvent
extends java.lang.Object
implements java.io.Serializable
Event fired when an error has occurred, or a timeout has expired.
Modifier and Type | Field and Description |
---|---|
static int |
SMPP_ERROR_INVALID_RESPONSE
The stack received an invalid response from the other node.
|
static int |
SMPP_ERROR_NETWORK
An error occurred with the network connection, probably when asynchronously sending a request that was started earlier.
|
static int |
SMPP_ERROR_NONE
No error
|
static int |
SMPP_TIMEOUT_ENQUIRE_LINK
This session’s Enquire Link timer has fired.
|
static int |
SMPP_TIMEOUT_INACTIVITY
This session’s Inactivity timer has fired.
|
static int |
SMPP_TIMEOUT_RESPONSE_RECEIVED
The stack has timed out waiting for a response to be received from the other node in the session.
|
static int |
SMPP_TIMEOUT_RESPONSE_SENT
The stack has timed out waiting for a response to be sent to the other node in the session (that is, the service failed to do so).
|
static int |
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. |
Constructor and Description |
---|
SmppErrorEvent(SmppSession session,
PDU message,
SmppErrorType errorType) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Deprecated.
Use
getErrorType() instead. |
SmppErrorType |
getErrorType()
Get the error type.
|
PDU |
getMessage()
Get the offending PDU, if any.
|
SmppSession |
getSession()
Get the session that the error occurred on
|
java.lang.String |
toString() |
public static final int SMPP_ERROR_NONE
No error
public static final int SMPP_ERROR_INVALID_RESPONSE
The stack received an invalid response from the other node. The offending response PDU can be obtained using getMessage()
.
public static final int SMPP_ERROR_NETWORK
An error occurred with the network connection, probably when asynchronously sending a request that was started earlier.
public static final int 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.
public static final int 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.
public static final int 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.
public static final int SMPP_TIMEOUT_RESPONSE_RECEIVED
The stack has timed out waiting for a response to be received from the other node in the session. The getMessage()
method returns the original request. The service should consider the request to have failed, and may re-send or reconnect as appropriate.
public static final int SMPP_TIMEOUT_RESPONSE_SENT
The stack has timed out waiting for a response to be sent to the other node in the session (that is, the service failed to do so). The getMessage()
method returns the original request. This error is never fired as an event because the service failed to process the request event. The resource adaptor will send a generic_nack to the other node.
public SmppErrorEvent(SmppSession session, PDU message, SmppErrorType errorType)
public SmppSession getSession()
Get the session that the error occurred on
public PDU getMessage()
Get the offending PDU, if any. Will return null
if there is no PDU associated with this error (eg. Inactivity timeout).
public SmppErrorType getErrorType()
Get the error type. See SmppErrorType
for possible values.
@Deprecated public int getErrorCode()
getErrorType()
instead.Get the error code. See constants for possible values and their meanings
public java.lang.String toString()
toString
in class java.lang.Object