BEA Systems, Inc.

WebLogic Server 6.1 API Reference

weblogic.jdbc.informix4
Class SocketTimeout

java.lang.Object
  |
  +--weblogic.jdbc.informix4.SocketTimeout

public class SocketTimeout
extends java.lang.Object

Author:
Copyright © 2001 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
SocketTimeout(java.net.Socket socket, int milliseconds)
          This class will set the timeout for the given socket to the given amount in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketTimeout

public SocketTimeout(java.net.Socket socket,
                     int milliseconds)
This class will set the timeout for the given socket to the given amount in milliseconds. The reason for having this really stupid class is that the timeout feature was implemented in version 1.1 of JDK. Version 1.02 does not have a time out feature on sockets at all. This means that a class calling setSoTimeout directly would not be loadable at all under JDK 1.02. Making this call in a separate class makes it possible to load the class that instanciates SocketTimeout and fail only when we try to load SocketTimeout with the old JDK. In this way the damage can be contained to calls to setQueryTimeout.

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs61

WebLogic classes and methods that do not appear in this reference are not public and are not supported.