Class StateProviderMetaData
java.lang.Object
com.kingsrook.qqq.backend.core.state.StateProviderMetaData
- All Implemented Interfaces:
MetaDataProducerOutput,QMetaDataObject,QSupplementalInstanceMetaData,TopLevelMetaDataInterface,Serializable
Where process and async job state lives (spec 2026-10-15-cluster-ha-design,
section B). Without this supplemental meta data (or with neither a provider
nor a table), state is in memory on each node, as before. With tableName,
the built-in TableStateProvider shares state through that table, so any
node can serve any process step, status poll or cancel.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for allowedClassPrefixesGetter for cleanIntervalMinutesGetter for encryptionKeyGetter for heartbeatSecondsGetter for lostAfterSecondsgetName()Supplemental meta data name.Getter for progressWriteIntervalMillisGetter for providerCodeGetter for requireEncryptionGetter for tableNameGetter for ttlHoursbooleanisShared()Whether the instance shares state across nodes.static StateProviderMetaDataThe instance's state meta data, or null when none is configured.voidsetAllowedClassPrefixes(List<String> allowedClassPrefixes) Setter for allowedClassPrefixesvoidsetCleanIntervalMinutes(Integer cleanIntervalMinutes) Setter for cleanIntervalMinutesvoidsetEncryptionKey(String encryptionKey) Setter for encryptionKeyvoidsetHeartbeatSeconds(Integer heartbeatSeconds) Setter for heartbeatSecondsvoidsetLostAfterSeconds(Integer lostAfterSeconds) Setter for lostAfterSecondsvoidsetProgressWriteIntervalMillis(Integer progressWriteIntervalMillis) Setter for progressWriteIntervalMillisvoidsetProviderCode(QCodeReference providerCode) Setter for providerCodevoidsetRequireEncryption(Boolean requireEncryption) Setter for requireEncryptionvoidsetTableName(String tableName) Setter for tableNamevoidsetTtlHours(Integer ttlHours) Setter for ttlHoursvoidvalidate(QInstance instance, QInstanceValidator validator) Validate: a configured table must exist; limits must be positive.withAllowedClassPrefixes(List<String> allowedClassPrefixes) Fluent setter for allowedClassPrefixeswithCleanIntervalMinutes(Integer cleanIntervalMinutes) Fluent setter for cleanIntervalMinuteswithEncryptionKey(String encryptionKey) Fluent setter for encryptionKeywithHeartbeatSeconds(Integer heartbeatSeconds) Fluent setter for heartbeatSecondswithLostAfterSeconds(Integer lostAfterSeconds) Fluent setter for lostAfterSecondswithProgressWriteIntervalMillis(Integer progressWriteIntervalMillis) Fluent setter for progressWriteIntervalMilliswithProviderCode(QCodeReference providerCode) Fluent setter for providerCodewithRequireEncryption(Boolean requireEncryption) Fluent setter for requireEncryptionwithTableName(String tableName) Fluent setter for tableNamewithTtlHours(Integer ttlHours) Fluent setter for ttlHoursMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.kingsrook.qqq.backend.core.model.metadata.QSupplementalInstanceMetaData
addSelfToInstance, enrich
-
Field Details
-
NAME
- See Also:
-
DEFAULT_TABLE_NAME
- See Also:
-
DEFAULT_ENCRYPTION_KEY
- See Also:
-
-
Constructor Details
-
StateProviderMetaData
public StateProviderMetaData()
-
-
Method Details
-
of
The instance's state meta data, or null when none is configured. -
getName
Supplemental meta data name.- Specified by:
getNamein interfaceTopLevelMetaDataInterface
-
validate
Validate: a configured table must exist; limits must be positive.- Specified by:
validatein interfaceQSupplementalInstanceMetaData
-
getProviderCode
Getter for providerCode -
setProviderCode
Setter for providerCode -
withProviderCode
Fluent setter for providerCode -
getTableName
Getter for tableName -
setTableName
Setter for tableName -
withTableName
Fluent setter for tableName -
getTtlHours
Getter for ttlHours -
setTtlHours
Setter for ttlHours -
withTtlHours
Fluent setter for ttlHours -
getEncryptionKey
Getter for encryptionKey -
setEncryptionKey
Setter for encryptionKey -
withEncryptionKey
Fluent setter for encryptionKey -
getAllowedClassPrefixes
-
setAllowedClassPrefixes
-
withAllowedClassPrefixes
Fluent setter for allowedClassPrefixes -
getProgressWriteIntervalMillis
Getter for progressWriteIntervalMillis -
setProgressWriteIntervalMillis
Setter for progressWriteIntervalMillis -
withProgressWriteIntervalMillis
Fluent setter for progressWriteIntervalMillis -
getHeartbeatSeconds
Getter for heartbeatSeconds -
setHeartbeatSeconds
Setter for heartbeatSeconds -
withHeartbeatSeconds
Fluent setter for heartbeatSeconds -
getLostAfterSeconds
Getter for lostAfterSeconds -
setLostAfterSeconds
Setter for lostAfterSeconds -
withLostAfterSeconds
Fluent setter for lostAfterSeconds -
getCleanIntervalMinutes
Getter for cleanIntervalMinutes -
setCleanIntervalMinutes
Setter for cleanIntervalMinutes -
withCleanIntervalMinutes
Fluent setter for cleanIntervalMinutes -
getRequireEncryption
Getter for requireEncryption -
setRequireEncryption
Setter for requireEncryption -
withRequireEncryption
Fluent setter for requireEncryption
-