Class WaitAofCommandKt
-
- All Implemented Interfaces:
public final class WaitAofCommandKt
-
-
Method Summary
Modifier and Type Method Description final static ValkeyRequestwaitaofCommand(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 Valkey (if numLocal is 1) and of at least numReplicas replicas, or until timeoutMillis is reached. -
-
Method Detail
-
waitaofCommand
final static ValkeyRequest 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 Valkey (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 Valkey has AOF disabled
timeoutMillis-must be lower than the read timeout of the connection, otherwise the connection fails with a SocketTimeoutException before Valkey replies. 0 (blocks forever in Valkey) is therefore not supported unless the read timeout is infinite (0) as well
-
-
-
-