| java.lang.Object javax.net.SocketFactory org.jnp.interfaces.TimedSocketFactory
TimedSocketFactory | public class TimedSocketFactory extends SocketFactory (Code) | | A concrete implementation of the SocketFactory that supports a configurable
timeout for the initial socket connection as well as the SO_TIMEOUT used to
determine how long a read will block waiting for data.
author: Scott.Stark@jboss.org version: $Revision: 57199 $ |
Inner Class :class ConnectThread extends Thread | |
Method Summary | |
public Socket | createSocket(String host, int port) | public Socket | createSocket(InetAddress hostAddr, int port) | public Socket | createSocket(String host, int port, InetAddress localAddr, int localPort) | public Socket | createSocket(InetAddress hostAddr, int port, InetAddress localAddr, int localPort) | protected Socket | createSocket(InetAddress hostAddr, int port, InetAddress localAddr, int localPort, int connectTimeout) |
JNP_SO_TIMEOUT | final public static String JNP_SO_TIMEOUT(Code) | | |
soTimeout | protected int soTimeout(Code) | | The SO_TIMEOUT in milliseconds
|
timeout | protected int timeout(Code) | | The connection timeout in milliseconds
|
TimedSocketFactory | public TimedSocketFactory()(Code) | | Creates a new instance of TimedSocketFactory
|
Methods inherited from javax.net.SocketFactory | public Socket createSocket() throws IOException(Code)(Java Doc) abstract public Socket createSocket(String host, int port) throws IOException, UnknownHostException(Code)(Java Doc) abstract public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException(Code)(Java Doc) abstract public Socket createSocket(InetAddress host, int port) throws IOException(Code)(Java Doc) abstract public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException(Code)(Java Doc) public static SocketFactory getDefault()(Code)(Java Doc)
|
|
|