trinity.distributed-value
Functions for operating on Atomix DistributedValues.
cas!
(cas! dvalue expected updated)
Compares and sets the updated
value when the expected
value matches the current value of the dvalue
.
cas-async!
(cas-async! dvalue expected updated)
Compares and sets the updated
value asynchronously when the expected
value matches the current value of the dvalue
, returning a CompletableFuture
.
get-async
(get-async dvalue)
Gets a value asynchronously from the dvalue
, returning a CompletableFuture
.
set-async!
(set-async! dvalue value)
Sets the value
asynchronously for the dvalue
, returning a CompletableFuture
.