|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.lateral.socket.tcp.utils.SocketOpener
public class SocketOpener
Socket openere that will timeout on the initial connect rather than block forever. Technique from core java II.
| Constructor Summary | |
|---|---|
SocketOpener(java.lang.String host,
int port)
Constructor for the SocketOpener object |
|
| Method Summary | |
|---|---|
java.net.Socket |
getSocket()
|
static java.net.Socket |
openSocket(java.lang.String host,
int port,
int timeOut)
Opens a socket with a connection timeout value. |
void |
run()
Main processing method for the SocketOpener object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketOpener(java.lang.String host,
int port)
host - port - | Method Detail |
|---|
public static java.net.Socket openSocket(java.lang.String host,
int port,
int timeOut)
host - port - timeOut -
public void run()
run in interface java.lang.Runnablepublic java.net.Socket getSocket()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||