|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.sip.Timeout
public final class Timeout
This class contains the enumerations that define whether a timeout has occured in the underlying implementation. The application gets informed on whether a retransmission or transaction timer has expired. There are two types of Timeout, namely:
RETRANSMIT
- This type is used to alert an application that
the underlying retransmit timer has expired so an application can
resend the message specific to a transaction. This timer is defaulted to
500ms and is doubled each time it is fired until the transaction expires
TRANSACTION
. The default retransmission value can be changed
per transaction using Transaction.setRetransmitTimer(int)
. The
RETRANSMIT type is exposed to the following applications as follows:
SipStack
. Therefore a Timeout
of this type will not be passed to the application. The application
will only get notified when the TRANSACTION
occurs.
RETRANSMIT
events, however the application
will get notified of TRANSACTION
events. As an Invite
transaction is end to end a stateful proxy will not handle the
retransmissions of messages on an Invite transaction, unless it decides to
respond to the Invite transaction, in essence becoming an User Agent Server
and as such should behave as described by the User Agent semantics above
bearing in mind the retranmission property of the underlying implementation.
RETRANSMIT
events on a message handled statelessly. If retransmission semantics are
required by an application using a stateless method, it is the responsibility
of the application to provide this feature, not the underlying implementation.
TRANSACTION
- This type is used to alert an application
that the underlying transaction has expired. A transaction timeout typically
occurs at a time 64*T1 were T1 is the initial value of the
RETRANSMIT
, usually defaulted to 500ms. The
TRANSACTION type is exposed to the following applications as follows:
SipStack
. Therefore a TRANSACTION Timeout will be fired to
the application on any transaction that expires including an Invite
transaction.
TRANSACTION
events on any of its transactions. As an Invite
transaction is end to end a stateful proxy will not handle transaction
timeouts on an Invite transaction, unless it decides to respond to the Invite
transaction, in essence becoming an User Agent Server and as such should
behave as described by the User Agent semantics above bearing in mind
the retransmission property of the underlying implementation.
TRANSACTION
events on a message handled statelessly.
If transaction timeout semantics are required by an application using a
stateless method, it the responsibility of the application to provide this
feature, not the underlying implementation.
Field Summary | |
---|---|
static int |
_RETRANSMIT
This constant value indicates the internal value of the Retransmit timeout. |
static int |
_TRANSACTION
This constant value indicates the internal value of the Transaction timeout. |
static Timeout |
RETRANSMIT
This constant value indicates the "Retransmit" timeout. |
static Timeout |
TRANSACTION
This constant value indicates the "Transaction" timeout. |
Method Summary | |
---|---|
Timeout |
getObject(int timeout)
This method returns the object value of the Timeout |
int |
getValue()
This method returns the integer value of the Timeout |
java.lang.String |
toString()
This method returns a string version of this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int _RETRANSMIT
public static final Timeout RETRANSMIT
public static final int _TRANSACTION
public static final Timeout TRANSACTION
Method Detail |
---|
public Timeout getObject(int timeout)
timeout
- The integer value of the Timeout
public int getValue()
public java.lang.String toString()
toString
in class java.lang.Object
|
JSIP API v1.2 November 2006 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |