This class decorates the RMIClientSocketFactory so as to enable customisations to be placed on newly created sockets.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | ConfigurableRMIClientSocketFactory(Integer socketTimeoutMillis)
Construct a new socket factory with the given timeout. |
| Modifier and Type | Method and Description |
|---|---|
| public Socket | Returns: a socket connected to the specified host and port.the host name host, int the port number port)Implements java. |
| public boolean | Returns: equal if the classes are the same and the socket options are the name.the comparison object object)Overrides java. |
| public static RMISocketFactory | Returns: the configured @{codeRMISocketFactoryReturn the JVM-level configured |
| public int | Returns: a hash based on socket optionsOverrides java. |
| ONE_SECOND | back to summary |
|---|---|
| private static final int ONE_SECOND | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| socketTimeoutMillis | back to summary |
|---|---|
| private final int socketTimeoutMillis | |
| ConfigurableRMIClientSocketFactory | back to summary |
|---|---|
| public ConfigurableRMIClientSocketFactory(Integer socketTimeoutMillis) Construct a new socket factory with the given timeout.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(String host, int port) throws IOException Implements java. Create a client socket connected to the specified host and port.
If necessary this implementation can be changed to specify the outbound address to use
e.g.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. The standard hashCode method which is necessary for SocketFactory classes. Omitting this method causes RMI to quickly error out with "too many open files" errors. | |
| getConfiguredRMISocketFactory | back to summary |
|---|---|
| public static RMISocketFactory getConfiguredRMISocketFactory() Return the JVM-level configured
If a global socket factory has been set via the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements the Object hashCode method.
| |