public final class Timeout extends Object implements Serializable
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.
Modifier and Type | Field and Description |
---|---|
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.
|
public static final int _RETRANSMIT
public static final Timeout RETRANSMIT
public static final int _TRANSACTION
public static final Timeout TRANSACTION
public Timeout getObject(int timeout)
timeout
- The integer value of the Timeoutpublic int getValue()
Copyright © 2016. All Rights Reserved.