Package tech.guilhermekaua.spigotboot.inventoryapi.internal.state


package tech.guilhermekaua.spigotboot.inventoryapi.internal.state
  • Class
    Description
    Resolver from a public ViewContext to its state backing; token impls never cast to concrete context classes, only to StateBackedContext.
    Internal seam exposing the table-assigned int id of a state token.
    Mutable state token bound from ViewArguments at open: the open phase validates the argument type and writes the value straight into the session's StateStore.
    Read-only state token computed once per context on the first read and stored in the session's StateStore; a null result is cached via a private sentinel so the computation never re-runs for that context.
    Mutable per-context state token; values live in the session's StateStore.
    Shared state token: one atomic value per view singleton, readable and writable from any thread.
    Seam between state token impls and context implementations: a context exposing the session's state store, owning view and liveness.
    Per-session state storage: an array indexed by token id plus the set of dirty token ids awaiting the next coalesced flush.
    Per-view registry of state tokens.