| java.lang.Object gov.nist.siplite.SipEvent gov.nist.siplite.TimeoutEvent
TimeoutEvent | public class TimeoutEvent extends SipEvent (Code) | | This class represents an Timeout event that is passed from a SipProvider to
its SipListener. A specific message may need retransmitted on a specific
transaction numerous times before it is acknowledged by the receiver. If the
message is not acknowledged after a specified period in the underlying
implementation the transaction will expire, this occurs usually
after seven retransmissions. The mechanism to alert an application that a
message for a an underlying transaction needs retransmitted (i.e. 200OK) or
an underlying transaction has expired is a Timeout Event.
A Timeout Event can be of two different types, namely:
A TimeoutEvent contains the following information:
- source - the SipProvider that sent the TimeoutEvent.
- transaction - the transaction that this Timeout applies to.
- isServerTransaction - boolean indicating whether the
transaction refers to
a client or server transaction.
- timeout - indicates what type of
Timeout occurred.
See Also: Timeout since: v1.1 |
TimeoutEvent | public TimeoutEvent(Object source, ServerTransaction serverTransaction)(Code) | | Constructs a TimeoutEvent to indicate a server retransmission
or transaction timeout.
Parameters: source - - the source of TimeoutEvent. Parameters: serverTransaction - - the server transaction that timed out. |
TimeoutEvent | public TimeoutEvent(Object source, ClientTransaction clientTransaction)(Code) | | Constructs a TimeoutEvent to indicate a
client retransmission or transaction
timeout.
Parameters: source - - source of TimeoutEvent. Parameters: clientTransaction - - the client transaction that timed out. |
TimeoutEvent | public TimeoutEvent(Object source, ClientTransaction clientTransaction, Timeout timeout)(Code) | | Constructs a TimeoutEvent to indicate a client
retransmission or transaction timeout.
Parameters: source - - source of TimeoutEvent. Parameters: clientTransaction - - the client transaction that timed out. Parameters: timeout - - indicates if this is a retranmission or transactiontimeout event. |
getClientTransaction | public ClientTransaction getClientTransaction()(Code) | | Gets the client transaction associated with this TimeoutEvent.
client transaction associated with this TimeoutEvent, or null ifthis event is specific to a server transaction. |
getServerTransaction | public ServerTransaction getServerTransaction()(Code) | | Gets the server transaction associated with this TimeoutEvent.
server transaction associated with this TimeoutEvent,or null if this event is specific to a client transaction. |
isServerTransaction | public boolean isServerTransaction()(Code) | | Indicates if the transaction associated with this TimeoutEvent
is a server transaction.
returns true if a server transaction or false if a clienttransaction. |
|
|