Package io.debezium.storage.redis
Class WaitReplicasRedisClientTest.RedisClientImpl
java.lang.Object
io.debezium.storage.redis.WaitReplicasRedisClientTest.RedisClientImpl
- All Implemented Interfaces:
io.debezium.storage.redis.RedisClient
- Enclosing class:
- WaitReplicasRedisClientTest
private static class WaitReplicasRedisClientTest.RedisClientImpl
extends Object
implements io.debezium.storage.redis.RedisClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidprivate Stringlonghset(byte[] key, byte[] field, byte[] value) longwaitReplicas(int replicas, long timeout) long
-
Field Details
-
errorCount
private int errorCount
-
-
Constructor Details
-
RedisClientImpl
private RedisClientImpl(int errorCount)
-
-
Method Details
-
disconnect
public void disconnect() throws io.debezium.storage.redis.RedisClientConnectionException- Specified by:
disconnectin interfaceio.debezium.storage.redis.RedisClient- Throws:
io.debezium.storage.redis.RedisClientConnectionException
-
close
public void close() throws io.debezium.storage.redis.RedisClientConnectionException- Specified by:
closein interfaceio.debezium.storage.redis.RedisClient- Throws:
io.debezium.storage.redis.RedisClientConnectionException
-
xadd
public String xadd(String key, Map<String, String> hash) throws io.debezium.storage.redis.RedisClientConnectionException- Specified by:
xaddin interfaceio.debezium.storage.redis.RedisClient- Throws:
io.debezium.storage.redis.RedisClientConnectionException
-
xadd
public List<String> xadd(List<AbstractMap.SimpleEntry<String, Map<String, throws io.debezium.storage.redis.RedisClientConnectionExceptionString>>> hashes) - Specified by:
xaddin interfaceio.debezium.storage.redis.RedisClient- Throws:
io.debezium.storage.redis.RedisClientConnectionException
-
xrange
public List<Map<String,String>> xrange(String key) throws io.debezium.storage.redis.RedisClientConnectionException - Specified by:
xrangein interfaceio.debezium.storage.redis.RedisClient- Throws:
io.debezium.storage.redis.RedisClientConnectionException
-
xlen
- Specified by:
xlenin interfaceio.debezium.storage.redis.RedisClient- Throws:
io.debezium.storage.redis.RedisClientConnectionException
-
hgetAll
public Map<String,String> hgetAll(String key) throws io.debezium.storage.redis.RedisClientConnectionException - Specified by:
hgetAllin interfaceio.debezium.storage.redis.RedisClient- Throws:
io.debezium.storage.redis.RedisClientConnectionException
-
hset
public long hset(byte[] key, byte[] field, byte[] value) throws io.debezium.storage.redis.RedisClientConnectionException - Specified by:
hsetin interfaceio.debezium.storage.redis.RedisClient- Throws:
io.debezium.storage.redis.RedisClientConnectionException
-
waitReplicas
public long waitReplicas(int replicas, long timeout) throws io.debezium.storage.redis.RedisClientConnectionException - Specified by:
waitReplicasin interfaceio.debezium.storage.redis.RedisClient- Throws:
io.debezium.storage.redis.RedisClientConnectionException
-
errorCount
-
info
- Specified by:
infoin interfaceio.debezium.storage.redis.RedisClient
-
clientList
- Specified by:
clientListin interfaceio.debezium.storage.redis.RedisClient
-