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

(get dvalue)

Gets a value from the dvalue.

get-async

(get-async dvalue)

Gets a value asynchronously from the dvalue, returning a CompletableFuture.

set!

(set! dvalue value)

Sets the value for the dvalue.

set-async!

(set-async! dvalue value)

Sets the value asynchronously for the dvalue, returning a CompletableFuture.