Package 

Class RedisHeimdallLight

  • All Implemented Interfaces:
    ch.sourcemotion.vertx.redis.client.heimdall.RedisHeimdall , ch.sourcemotion.vertx.redis.client.heimdall.impl.PostReconnectJob , io.vertx.redis.client.Redis , java.lang.AutoCloseable

    
    public final class RedisHeimdallLight
     implements RedisHeimdall, PostReconnectJob
                        

    Lightweight but more performant variant of this client. This client will use only a single connection to Redis. Supports reconnect capabilities like RedisHeimdall as it is used under hood.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Future<Response> send(Request command)
      Future<List<Response>> batch(List<Request> commands)
      Future<RedisConnection> connect()
      Future<Unit> execute(Redis redis) Called after successful reconnect by redisHeimdall.
      Unit close()
      • Methods inherited from class io.vertx.redis.client.Redis

        batch, connect, send
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • send

         Future<Response> send(Request command)
      • connect

         Future<RedisConnection> connect()
      • execute

         Future<Unit> execute(Redis redis)

        Called after successful reconnect by redisHeimdall. This will ensure a valid connection got obtained before any information about successful reconnection get published elsewhere.