Class DurableProcessMetaData
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.processes.QSupplementalProcessMetaData
com.kingsrook.qqq.backend.core.jobs.DurableProcessMetaData
Per-process durable-job settings (supplemental process meta data "durable").
Optional: with none, the kernel decides eligibility by the kind of process
(core bulk processes and partitionable streamed ETL are eligible), and an app
can make any process eligible by name in DurableJobsMetaData.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for alwaysDurable: the process is too large to run synchronously; it always runs as a job.Getter for chunkParallelSafe: chunks of one job may run in parallel.Getter for chunkSize: rows per chunk (null means the instance default).Getter for durableThresholdRows: rows above which it runs as a job (null means the instance default).The declared effect with this name, or null.Getter for effects: the side effects its steps cause outside the job's database (section 2.13)Getter for eligible: whether the process may run as a durable job (null means the kernel default for its kind).Getter for idempotency: how safe re-running a chunk is (null means chosen by the kernel).Getter for maxConcurrentJobs: running jobs of this process at once (null means the instance default).Getter for maxParallelChunks: chunks of one job that may run at once (more needs chunkParallelSafe).Getter for semantics: CHUNKED or ATOMIC (null means CHUNKED).getType()Getter for typestatic DurableProcessMetaDataof(QProcessMetaData process) The durable settings on a process, or null.voidvalidate(QInstance qInstance, QProcessMetaData process, QInstanceValidator validator) withAlwaysDurable(Boolean alwaysDurable) Fluent setter for alwaysDurablewithChunkParallelSafe(Boolean chunkParallelSafe) Fluent setter for chunkParallelSafewithChunkSize(Integer chunkSize) Fluent setter for chunkSizewithDurableThresholdRows(Integer durableThresholdRows) Fluent setter for durableThresholdRowswithEffect(JobEffectDeclaration effect) Declare a side effect one of the process's steps causes.withEffects(List<JobEffectDeclaration> effects) Fluent setter for effectswithEligible(Boolean eligible) Fluent setter for eligiblewithIdempotency(JobIdempotency idempotency) Fluent setter for idempotencywithMaxConcurrentJobs(Integer maxConcurrentJobs) Fluent setter for maxConcurrentJobswithMaxParallelChunks(Integer maxParallelChunks) Fluent setter for maxParallelChunkswithSemantics(JobSemantics semantics) Fluent setter for semanticsMethods inherited from class com.kingsrook.qqq.backend.core.model.metadata.processes.QSupplementalProcessMetaData
enrich
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
DurableProcessMetaData
public DurableProcessMetaData()
-
-
Method Details
-
of
The durable settings on a process, or null. -
getType
Description copied from class:QSupplementalProcessMetaDataGetter for type- Specified by:
getTypein classQSupplementalProcessMetaData
-
validate
- Overrides:
validatein classQSupplementalProcessMetaData
-
withEffect
Declare a side effect one of the process's steps causes. -
getEffect
The declared effect with this name, or null. -
getEligible
Getter for eligible: whether the process may run as a durable job (null means the kernel default for its kind). -
withEligible
Fluent setter for eligible -
getAlwaysDurable
Getter for alwaysDurable: the process is too large to run synchronously; it always runs as a job. -
withAlwaysDurable
Fluent setter for alwaysDurable -
getDurableThresholdRows
Getter for durableThresholdRows: rows above which it runs as a job (null means the instance default). -
withDurableThresholdRows
Fluent setter for durableThresholdRows -
getChunkSize
Getter for chunkSize: rows per chunk (null means the instance default). -
withChunkSize
Fluent setter for chunkSize -
getIdempotency
Getter for idempotency: how safe re-running a chunk is (null means chosen by the kernel). -
withIdempotency
Fluent setter for idempotency -
getSemantics
Getter for semantics: CHUNKED or ATOMIC (null means CHUNKED). -
withSemantics
Fluent setter for semantics -
getMaxParallelChunks
Getter for maxParallelChunks: chunks of one job that may run at once (more needs chunkParallelSafe). -
withMaxParallelChunks
Fluent setter for maxParallelChunks -
getChunkParallelSafe
Getter for chunkParallelSafe: chunks of one job may run in parallel. -
withChunkParallelSafe
Fluent setter for chunkParallelSafe -
getMaxConcurrentJobs
Getter for maxConcurrentJobs: running jobs of this process at once (null means the instance default). -
withMaxConcurrentJobs
Fluent setter for maxConcurrentJobs -
getEffects
Getter for effects: the side effects its steps cause outside the job's database (section 2.13) -
withEffects
Fluent setter for effects
-