Class Append
java.lang.Object
io.fluxzero.common.api.Request
io.fluxzero.common.api.Command
io.fluxzero.common.api.publishing.Append
- All Implemented Interfaces:
JsonType
Command to publish messages to a specific log in Fluxzero (e.g., commands, events, metrics, etc.).
The messages are written to the log associated with the given messageType.
Each message is represented as a SerializedMessage and is appended to the log
in the order provided.
This operation is typically used by low-level clients (such as GatewayClient)
that need full control over message serialization and targeting. High-level APIs usually
delegate to this command internally.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMetric payload used for internal monitoring and logging. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIndicates the delivery guarantee required for this command.intgetSize()Optionally 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()
-
Constructor Details
-
Append
public Append()
-
-
Method Details
-
getSize
public int getSize() -
getGuarantee
Description copied from class:CommandIndicates the delivery guarantee required for this command.- Specified by:
getGuaranteein classCommand- Returns:
- the
Guaranteelevel (e.g.STORED,SENT,NONE)
-
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
-
toString
-
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
-