Class RESP2Client
- java.lang.Object
-
- com.moilioncircle.redis.replicator.client.RESP2Client
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class RESP2Client extends Object implements Closeable
- Since:
- 3.7.0
- Author:
- Leon Chen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRESP2Client.Commandstatic interfaceRESP2Client.Function<T,R>static interfaceRESP2Client.NodeConsumer
-
Constructor Summary
Constructors Constructor Description RESP2Client(String host, int port, Configuration configuration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()RESP2Client.CommandnewCommand()static RESP2ClientvalueOf(RESP2Client prev, int db, IOException reason, int attempts)
-
-
-
Constructor Detail
-
RESP2Client
public RESP2Client(String host, int port, Configuration configuration) throws IOException
- Throws:
IOException
-
-
Method Detail
-
newCommand
public RESP2Client.Command newCommand()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
valueOf
public static RESP2Client valueOf(RESP2Client prev, int db, IOException reason, int attempts) throws IOException
- Throws:
IOException
-
-