A trait to assist in implementing the JobInterface

  • experimental The experimental flag means that while we believe this method or class is ready for use, it may change before release in backwards- incompatible ways. Please use with caution, and test thoroughly when upgrading.
AbstractTrait
Methods
public bootstrapFile()
 
Returns the optional file required to run this job.

  • return string|null
public flush(array $items = [])
 
Finish any pending activity for this job.

  • return bool
public id()
 
Return the job id

  • return int
public identifier()
 
Return the job identifier

  • return string
public numWorkers()
 
Returns the number of workers for this job. **Defaults to* 1.

  • return int
public abstract run()
 
Runs the job loop. This is expected to be a blocking call.

Properties
private $bootstrapFile
 


  • var string|null An optional file that is required to run this job.
private $id
 


  • var int The job id
private $identifier
 


  • var string The job identifier
private $numWorkers
 


  • var int The number of workers for this job.
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only