站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

TimeoutServerSocketFactory (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.net.sockets
Class TimeoutServerSocketFactory

java.lang.Object
  extended byorg.jboss.net.sockets.TimeoutServerSocketFactory
All Implemented Interfaces:
RMIServerSocketFactory, Serializable

public class TimeoutServerSocketFactory
extends Object
implements RMIServerSocketFactory, Serializable

A RMIServerSocketFactory that installs a InterruptableInputStream to be responsive to thead interruption events.

Version:
$Revision: 1.1 $
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

Field Summary
protected  int backlog
           
protected  InetAddress bindAddress
           
 
Constructor Summary
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
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bindAddress

protected transient InetAddress bindAddress

backlog

protected int backlog
Constructor Detail

TimeoutServerSocketFactory

public TimeoutServerSocketFactory()
Create a socket factory that binds on any address with a default backlog of 200


TimeoutServerSocketFactory

public TimeoutServerSocketFactory(InetAddress bindAddress)
Create a socket factory with the given bind address


TimeoutServerSocketFactory

public TimeoutServerSocketFactory(int backlog)
Create a socket factory with the given backlog


TimeoutServerSocketFactory

public TimeoutServerSocketFactory(InetAddress bindAddress,
                                  int backlog)
Create a socket factory with the given bind address and backlog

Method Detail

getBindAddress

public String getBindAddress()

setBindAddress

public void setBindAddress(String host)
                    throws UnknownHostException
Throws:
UnknownHostException

setBindAddress

public void setBindAddress(InetAddress bindAddress)

createServerSocket

public ServerSocket createServerSocket(int port)
                                throws IOException
Create a server socket on the specified port (port 0 indicates an anonymous port).

Specified by:
createServerSocket in interface RMIServerSocketFactory
Parameters:
port - the port number
Returns:
the server socket on the specified port
Throws:
IOException - if an I/O error occurs during server socket creation
Since:
1.2

equals

public boolean equals(Object obj)

hashCode

public int hashCode()


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.