Class StoreValues
java.lang.Object
io.fluxzero.common.api.Request
io.fluxzero.common.api.Command
io.fluxzero.common.api.keyvalue.StoreValues
- All Implemented Interfaces:
JsonType
Legacy API: This command stores key-value pairs in the legacy key-value store mechanism.
While still supported, this approach is considered obsolete and retained primarily for backward compatibility.
For most use cases, prefer using DocumentStore for flexible and queryable persistence.
Fields
values– A list of key-value pairs to storeguarantee– Defines delivery/storage guarantees (e.g.,Guarantee.STORED)
Routing
The first key in the value list is used as the routing key for load distribution.Metrics
The command emits a lightweightStoreValues.Metric representation with the keys and count.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLightweight metric representation of this command. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptionally specifies a routing key for this command, which may be used to partition work or apply consistent hashing when processed in the Fluxzero Runtime.toMetric()Converts this object into a compact metric representation for logging or monitoring.toString()Methods inherited from class Command
getGuarantee
-
Constructor Details
-
StoreValues
public StoreValues()
-
-
Method Details
-
toMetric
Description copied from interface:JsonTypeConverts this object into a compact metric representation for logging or monitoring.Used by the Fluxzero Java SDK to avoid logging large payloads directly while still tracking platform usage.
- Returns:
- a safe and compact object suitable for serialization to the metrics log
-
toString
-
routingKey
Description copied from class:CommandOptionally specifies a routing key for this command, which may be used to partition work or apply consistent hashing when processed in the Fluxzero Runtime.- Overrides:
routingKeyin classCommand- Returns:
- a routing key string, or
nullif not specified
-