Class DeadlineMetadata

java.lang.Object
io.fluxzero.sdk.scheduling.DeadlineMetadata

public final class DeadlineMetadata extends Object
Internal codec for SDK-owned deadline metadata in events, Model documents and snapshots.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Reserved SDK namespace; application/dispatch metadata cannot supply values in this namespace.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(Entity<?> entity)
    Obtains the immutable deadline map from a loaded Model revision.
    read(io.fluxzero.common.api.Metadata metadata, String modelId, Map<String, DeadlineInfo> previous)
    Restores a Model's recorded categories; old records without metadata retain their prior value.
    static io.fluxzero.common.api.Metadata
    strip(io.fluxzero.common.api.Metadata metadata)
    Removes untrusted deadline metadata before preparing a live Model write.
    static io.fluxzero.common.api.Metadata
    with(io.fluxzero.common.api.Metadata metadata, String modelId, Map<String, DeadlineInfo> deadlines)
    Adds one complete authoritative category map, including an explicit empty map when canceled.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PREFIX

      public static final String PREFIX
      Reserved SDK namespace; application/dispatch metadata cannot supply values in this namespace.
      See Also:
  • Method Details

    • strip

      public static io.fluxzero.common.api.Metadata strip(io.fluxzero.common.api.Metadata metadata)
      Removes untrusted deadline metadata before preparing a live Model write.
    • with

      public static io.fluxzero.common.api.Metadata with(io.fluxzero.common.api.Metadata metadata, String modelId, Map<String, DeadlineInfo> deadlines)
      Adds one complete authoritative category map, including an explicit empty map when canceled.
    • read

      public static Map<String, DeadlineInfo> read(io.fluxzero.common.api.Metadata metadata, String modelId, Map<String, DeadlineInfo> previous)
      Restores a Model's recorded categories; old records without metadata retain their prior value.
    • get

      public static Map<String, DeadlineInfo> get(Entity<?> entity)
      Obtains the immutable deadline map from a loaded Model revision.