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 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:
      disconnect in interface io.debezium.storage.redis.RedisClient
      Throws:
      io.debezium.storage.redis.RedisClientConnectionException
    • close

      public void close() throws io.debezium.storage.redis.RedisClientConnectionException
      Specified by:
      close in interface io.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:
      xadd in interface io.debezium.storage.redis.RedisClient
      Throws:
      io.debezium.storage.redis.RedisClientConnectionException
    • xadd

      public List<String> xadd(List<AbstractMap.SimpleEntry<String,Map<String,String>>> hashes) throws io.debezium.storage.redis.RedisClientConnectionException
      Specified by:
      xadd in interface io.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:
      xrange in interface io.debezium.storage.redis.RedisClient
      Throws:
      io.debezium.storage.redis.RedisClientConnectionException
    • xlen

      public long xlen(String key) throws io.debezium.storage.redis.RedisClientConnectionException
      Specified by:
      xlen in interface io.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:
      hgetAll in interface io.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:
      hset in interface io.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:
      waitReplicas in interface io.debezium.storage.redis.RedisClient
      Throws:
      io.debezium.storage.redis.RedisClientConnectionException
    • errorCount

      private String errorCount()
    • info

      public String info(String section)
      Specified by:
      info in interface io.debezium.storage.redis.RedisClient