Class RPCInvokeOptions
java.lang.Object
io.superdurable.dex.RPCInvokeOptions
Adds runtime-selected Attribute-map locks and exact map-instance loads to one RPC invocation.
These selections are additive. Dex unions them with the locks and state loads declared by the RPC annotation, then sorts and deduplicates the physical names. A read-modify-write handler must add both a lock and an Attribute-map load for the same instance.
RPCInvokeOptions options = RPCInvokeOptions.newBuilder()
.addLockAttributeMapInstance(customerProfiles, partitionName)
.addLoadAttributeMapInstance(customerProfiles, partitionName)
.build();
client.invokeRPC(directoryRpc::upsertCustomerProfile, profile, options);
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
newBuilder
Creates an empty builder.- Returns:
- a mutable builder with no invocation-time selections
-