|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.protocols.smpp.event.SMPPEvent
org.mobicents.protocols.smpp.event.ReceiverExitEvent
public class ReceiverExitEvent
Event generated by the receiver thread exiting. This event will be generated
when the receiver thread terminates either normally or abnormally due to an
exception. In the former case, isException will return false. In the latter,
isException will return true and the Throwable object that was the cause of
the thread's termination can be accessed using getException(). If an
application receives this event, it can be assumed that the connection to the
SMSC is invalid. That is, the network-specific connection will have to be
reestablished before binding to the SMSC is again possible. It is up to the
application to do any necessary clean up to the old network connection.
| Field Summary | |
|---|---|
static int |
BIND_TIMEOUT
Receiver exited because bind timed out. |
static int |
EXCEPTION
Receiver exited due to an exception. |
static int |
UNKNOWN
Recevier exit reason of "unknown". |
| Fields inherited from class org.mobicents.protocols.smpp.event.SMPPEvent |
|---|
RECEIVER_EXCEPTION, RECEIVER_EXIT, RECEIVER_START |
| Constructor Summary | |
|---|---|
ReceiverExitEvent(Session source)
Create a new ReceiverExitEvent. |
|
ReceiverExitEvent(Session source,
Throwable t)
Create a new ReceiverExitEvent. |
|
ReceiverExitEvent(Session source,
Throwable t,
SessionState state)
Create a new ReceiverExitEvent. |
|
| Method Summary | |
|---|---|
Throwable |
getException()
Get the exception that caused termination. |
int |
getReason()
Get the reason for the exit event. |
SessionState |
getState()
Get the state the Connection was in when termination occurred. |
boolean |
isException()
Deprecated. use {#link #getReason} |
void |
setException(Throwable t)
|
void |
setReason(int reason)
Set the reason for the exit event. |
| Methods inherited from class org.mobicents.protocols.smpp.event.SMPPEvent |
|---|
getSource, getType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNKNOWN
public static final int BIND_TIMEOUT
public static final int EXCEPTION
| Constructor Detail |
|---|
public ReceiverExitEvent(Session source)
source - the source Connection of this event.
public ReceiverExitEvent(Session source,
Throwable t)
t is not null, the
newly created event will represent an abnormal termination of the
receiver thread. If t is null, this constructor has the
same effect as ReceiverExitEvent(Session).
source - the source Connection of this event.t - the exception which caused termination (may be null).
public ReceiverExitEvent(Session source,
Throwable t,
SessionState state)
t is not null, the
newly created event will represent an abnormal termination of the
receiver thread. If t is null, this constructor has the
same effect as ReceiverExitEvent(Session).
source - the source Connection of this event.t - the exception which caused termination (may be null).state - the state the Connection was in when termination occurred.com.adenki.smpp.SessionState| Method Detail |
|---|
public boolean isException()
public Throwable getException()
public void setException(Throwable t)
public SessionState getState()
public int getReason()
public void setReason(int reason)
reason - The reason to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||