public final class ConfigurableRMIClientSocketFactory extends Object implements Serializable, RMIClientSocketFactory
| Constructor and Description | 
|---|
ConfigurableRMIClientSocketFactory(Integer socketTimeoutMillis)
Construct a new socket factory with the given timeout. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Socket | 
createSocket(String host,
            int port)
Create a client socket connected to the specified host and port. 
 | 
boolean | 
equals(Object object)
The standard hashCode method which is necessary for SocketFactory classes. 
 | 
static RMISocketFactory | 
getConfiguredRMISocketFactory()
Return the JVM-level configured  
RMISocketFactory. | 
int | 
hashCode()
Implements the Object hashCode method. 
 | 
public ConfigurableRMIClientSocketFactory(Integer socketTimeoutMillis)
socketTimeoutMillis - Socket.setSoTimeout(int)public Socket createSocket(String host, int port) throws IOException
Socket socket = new Socket(host, port, localInterface , 0);createSocket in interface RMIClientSocketFactoryhost - the host nameport - the port numberIOException - if an I/O error occurs during socket creationpublic int hashCode()
public boolean equals(Object object)
public static RMISocketFactory getConfiguredRMISocketFactory()
RMISocketFactory.
 
 If a global socket factory has been set via the
 RMISocketFactory.setSocketFactory(RMISocketFactory) method then
 that factory will be returned.  Otherwise the default socket factory as
 returned by RMISocketFactory.getDefaultSocketFactory() is used
 instead.
RMISocketFactoryCopyright © 2002-2024 Atlassian. All Rights Reserved.