Interface HasMetadata

All Known Subinterfaces:
HasMessage
All Known Implementing Classes:
DefaultEntityHelper.DeserializingMessageWithEntity, DefaultEntityHelper.MessageWithEntity, DeserializingMessage, Message, Schedule, SerializedMessage, WebRequest, WebResponse

public interface HasMetadata
Marker interface for objects that carry associated Metadata.

Implementations of this interface expose a structured metadata map that can be used for routing, correlation, trace propagation, or other contextual behavior within the Flux platform.

Typical implementers include Message, SerializedMessage, and custom types that participate in message tracking or enrichment.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    Determines if the data associated with this metadata is "chunked".
    Returns the Metadata associated with this object.
    default boolean
    Determines if the data associated with this metadata is the final part of the data.
  • Field Details

  • Method Details

    • getMetadata

      Metadata getMetadata()
      Returns the Metadata associated with this object.
      Returns:
      metadata attached to this instance; never null
    • chunked

      default boolean chunked()
      Determines if the data associated with this metadata is "chunked". This method checks if the metadata contains a FINAL_CHUNK key.
      Returns:
      true if the metadata contains the FINAL_CHUNK key, false otherwise.
    • lastChunk

      default boolean lastChunk()
      Determines if the data associated with this metadata is the final part of the data. This method evaluates the value of the FINAL_CHUNK key in the metadata. If it is missing or set to true, this method returns true.
      Returns:
      true if the metadata value for the FINAL_CHUNK key is true, false otherwise.