Class WaitAofCommandKt
-
- All Implemented Interfaces:
public final class WaitAofCommandKt
-
-
Method Summary
Modifier and Type Method Description final static RedisRequestwaitaofCommand(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. -
-
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
-
-
-
-