JSIP API v1.2
November 2006

javax.sip
Class Timeout

java.lang.Object
  extended by javax.sip.Timeout
All Implemented Interfaces:
java.io.Serializable

public final class Timeout
extends java.lang.Object
implements java.io.Serializable

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:

Author:
BEA Systems, NIST
See Also:
Serialized Form

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

_RETRANSMIT

public static final int _RETRANSMIT
This constant value indicates the internal value of the Retransmit timeout.
This constant has an integer value of 0.

See Also:
Constant Field Values

RETRANSMIT

public static final Timeout RETRANSMIT
This constant value indicates the "Retransmit" timeout.


_TRANSACTION

public static final int _TRANSACTION
This constant value indicates the internal value of the Transaction timeout.
This constant has an integer value of 1.

See Also:
Constant Field Values

TRANSACTION

public static final Timeout TRANSACTION
This constant value indicates the "Transaction" timeout.

Method Detail

getObject

public Timeout getObject(int timeout)
This method returns the object value of the Timeout

Parameters:
timeout - The integer value of the Timeout
Returns:
The Timeout Object

getValue

public int getValue()
This method returns the integer value of the Timeout

Returns:
The integer value of the Timeout

toString

public java.lang.String toString()
This method returns a string version of this class.

Overrides:
toString in class java.lang.Object
Returns:
The string version of the Timeout

JSIP API v1.2
November 2006

If you have any comments, please mail them to JAIN-SIP-INTEREST@java.sun.com after subscribing at http://archives.java.sun.com
Copyright - 2006 BEA Systems and Sun Microsystems