Class TableStateProvider

java.lang.Object
com.kingsrook.qqq.backend.core.state.TableStateProvider
All Implemented Interfaces:
StateProviderInterface

public class TableStateProvider extends Object implements StateProviderInterface
Process and async job state shared through a QQQ table, so any node of a multi-node application can serve any process step, status poll or cancel (spec 2026-10-15-cluster-ha-design, section B). Works on any backend; the table is defined by defineTable and created by the application's migrations. Every operation runs as the system user with no transaction of its own, so state is visible to other nodes immediately, whatever the caller's transaction does. Values are serialized by StateSerialization (gzip, and AES-GCM with a key). Entries expire after ttlHours; every node sweeps expired rows every cleanIntervalMinutes. A value that cannot be serialized is kept in this node's memory instead (and logged once per class), so a process keeps working on a single node.