|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.handle.hdllib.TimedConnection
public class TimedConnection
Factory for socket connections which time out if not connected after a specified delay. The underlying java.net.Socket object actually sticks around until the native connect operation times out(takes a LONG time), or when the Java VM exits(because the connect occurs in a daemon thread).
| Constructor Summary | |
|---|---|
TimedConnection()
|
|
| Method Summary | |
|---|---|
static java.net.Socket |
getSocket(java.net.InetAddress addr,
int port,
int delay)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimedConnection()
| Method Detail |
|---|
public static java.net.Socket getSocket(java.net.InetAddress addr,
int port,
int delay)
throws java.io.InterruptedIOException,
java.io.IOException
java.io.InterruptedIOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||