Class RedisSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- com.moilioncircle.redis.replicator.net.RedisSocketFactory
-
public class RedisSocketFactory extends SocketFactory
- Since:
- 2.1.0
- Author:
- Leon Chen
-
-
Field Summary
Fields Modifier and Type Field Description protected Configurationconfiguration
-
Constructor Summary
Constructors Constructor Description RedisSocketFactory(Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketcreateSocket(String host, int port)SocketcreateSocket(String host, int port, int timeout)SocketcreateSocket(String host, int port, InetAddress localAddr, int localPort)SocketcreateSocket(InetAddress address, int port)SocketcreateSocket(InetAddress address, int port, InetAddress localAddr, int localPort)-
Methods inherited from class javax.net.SocketFactory
createSocket, getDefault
-
-
-
-
Field Detail
-
configuration
protected final Configuration configuration
-
-
Constructor Detail
-
RedisSocketFactory
public RedisSocketFactory(Configuration configuration)
-
-
Method Detail
-
createSocket
public Socket createSocket(String host, int port) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localAddr, int localPort) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddr, int localPort) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, int timeout) throws IOException
- Throws:
IOException
-
-