Package psiprobe.tools
Class AsyncSocketFactory
- java.lang.Object
-
- psiprobe.tools.AsyncSocketFactory
-
public final class AsyncSocketFactory extends Object
A factory for creating AsyncSocket objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
AsyncSocketFactory.SocketRunnable
The Class SocketRunnable.(package private) static class
AsyncSocketFactory.SocketWrapper
The Class SocketWrapper.(package private) static class
AsyncSocketFactory.TimeoutRunnable
The Class TimeoutRunnable.
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Logger
logger
The Constant logger.
-
Constructor Summary
Constructors Modifier Constructor Description private
AsyncSocketFactory()
Prevent Instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Socket
createSocket(String server, int port, long timeout)
Creates a new AsyncSocket object.
-
-
-
Method Detail
-
createSocket
public static Socket createSocket(String server, int port, long timeout) throws IOException
Creates a new AsyncSocket object.- Parameters:
server
- the serverport
- the porttimeout
- the timeout- Returns:
- the socket
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
-