public class TimeoutServerSocketFactory extends Object implements RMIServerSocketFactory, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
backlog |
protected InetAddress |
bindAddress |
| Constructor and Description |
|---|
TimeoutServerSocketFactory()
Create a socket factory that binds on any address with a default
backlog of 200
|
TimeoutServerSocketFactory(InetAddress bindAddress)
Create a socket factory with the given bind address
|
TimeoutServerSocketFactory(InetAddress bindAddress,
int backlog)
Create a socket factory with the given bind address and backlog
|
TimeoutServerSocketFactory(int backlog)
Create a socket factory with the given backlog
|
| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
createServerSocket(int port)
Create a server socket on the specified port (port 0 indicates
an anonymous port).
|
boolean |
equals(Object obj) |
String |
getBindAddress() |
int |
hashCode() |
void |
setBindAddress(InetAddress bindAddress) |
void |
setBindAddress(String host) |
protected transient InetAddress bindAddress
protected int backlog
public TimeoutServerSocketFactory()
public TimeoutServerSocketFactory(InetAddress bindAddress)
bindAddress - public TimeoutServerSocketFactory(int backlog)
backlog - public TimeoutServerSocketFactory(InetAddress bindAddress, int backlog)
bindAddress - backlog - public String getBindAddress()
public void setBindAddress(String host) throws UnknownHostException
UnknownHostExceptionpublic void setBindAddress(InetAddress bindAddress)
public ServerSocket createServerSocket(int port) throws IOException
createServerSocket in interface RMIServerSocketFactoryport - the port numberIOException - if an I/O error occurs during server socket
creationCopyright © 2015 JBoss by Red Hat. All rights reserved.