Package org.jboss.net.sockets
Class TimeoutServerSocket
- java.lang.Object
-
- java.net.ServerSocket
-
- org.jboss.net.sockets.TimeoutServerSocket
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class TimeoutServerSocket extends java.net.ServerSocket
A ServerSocket that returns a TimeoutSocket from the overriden accept.- Version:
- $Revision$
-
-
Constructor Summary
Constructors Constructor Description TimeoutServerSocket(int port)
TimeoutServerSocket(int port, int backlog)
TimeoutServerSocket(int port, int backlog, java.net.InetAddress bindAddr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.Socket
accept()
-
Methods inherited from class java.net.ServerSocket
bind, bind, close, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getOption, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, supportedOptions, toString
-
-
-
-
Constructor Detail
-
TimeoutServerSocket
public TimeoutServerSocket(int port) throws java.io.IOException
- Throws:
java.io.IOException
-
TimeoutServerSocket
public TimeoutServerSocket(int port, int backlog) throws java.io.IOException
- Throws:
java.io.IOException
-
TimeoutServerSocket
public TimeoutServerSocket(int port, int backlog, java.net.InetAddress bindAddr) throws java.io.IOException
- Throws:
java.io.IOException
-
-