Class WaitAofCommandKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static RedisRequest waitaofCommand(Long numLocal, Long numReplicas, Long timeoutMillis, Function1<WaitAofResult, Unit> onResult) Blocks until all previous write commands of this connection were fsynced to the AOF of the local Redis (if numLocal is 1) and of at least numReplicas replicas, or until timeoutMillis is reached.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • waitaofCommand

         final static RedisRequest waitaofCommand(Long numLocal, Long numReplicas, Long timeoutMillis, Function1<WaitAofResult, Unit> onResult)

        Blocks until all previous write commands of this connection were fsynced to the AOF of the local Redis (if numLocal is 1) and of at least numReplicas replicas, or until timeoutMillis is reached.

        Parameters:
        numLocal -
        • 0 or 1. 1 fails if the local Redis has AOF disabled

        timeoutMillis -
        • must be lower than the read timeout of the connection, otherwise the connection fails with a SocketTimeoutException before Redis replies. 0 (blocks forever in Redis) is therefore not supported unless the read timeout is infinite (0) as well