Class WaitKt
-
- All Implemented Interfaces:
public final class WaitKt
-
-
Method Summary
Modifier and Type Method Description final static Longwait(ValkeyConnection $self, Long numReplicas, Long timeoutMillis)final static Unitwait(ValkeyPipelineBuilder $self, Long numReplicas, Long timeoutMillis, Function1<Long, Unit> onResult)Blocks until all previous write commands of this connection were acknowledged by at least numReplicas replicas, or until timeoutMillis is reached (0 blocks forever). -
-
Method Detail
-
wait
final static Long wait(ValkeyConnection $self, Long numReplicas, Long timeoutMillis)
-
wait
final static Unit wait(ValkeyPipelineBuilder $self, Long numReplicas, Long timeoutMillis, Function1<Long, Unit> onResult)
Blocks until all previous write commands of this connection were acknowledged by at least numReplicas replicas, or until timeoutMillis is reached (0 blocks forever).
- Parameters:
onResult-called with the number of replicas that acknowledged the writes
-
-
-
-