A trait to assist in the registering and processing of simple jobs.

  • 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 abstract run()
 

The simple loop function. This method is expected to be a blocking call.

Properties
private $clientConfig
 
  • var array
private $closureSerializer
 
  • var ClosureSerializerInterface|null
private static $productionKey = 'P'
private static $typeDirect = 1
private static $typeFile = 2
Methods
private defaultConfigStorage()
private getDefaultClosureSerializer()
 
  • return ClosureSerializerInterface|null
private getSysvKey( $idNum)
 

Create a SystemV IPC key for the given id number.

Set GOOGLE_CLOUD_SYSV_ID envvar to change the base id.

  • return int
private getUnwrappedClientConfig()
 
  • return array
private isDaemonRunning()
 

Returns whether or not the BatchDaemon is running.

  • return bool
private isSysvIPCLoaded()
 

Determine whether the SystemV IPC extension family is loaded.

  • return bool
private setSerializableClientOptions(array $options)
 
    private setSimpleJobProperties(array $options = [])
     

    Registers this object as a SimpleJob.

      private setWrappedClientConfig(array $options)
       
        Properties
        private static $productionKey = 'P'
        private static $typeDirect = 1
        private static $typeFile = 2
        © 2020 Bruce Wells
        Search Namespaces \ Classes
        ConfigurationNumbers (0-9.) only