Omeka_Job_Dispatcher_Adapter_Synchronous

class Omeka_Job_Dispatcher_Adapter_Synchronous

Package: Job\Dispatcher\Adapter

Dispatcher for executing jobs in real-time, i.e. executing within the browser request.

WARNING: While especially useful for simple jobs or instances where it is notpossible to use one of the other adapters, keep in mind that long jobs maylead to request timeouts or open the possibility of DoS attacks by malicioususers.

property _options
send($encodedJob, $metadata)
Parameters:
  • $encodedJob (unknown) –
  • $metadata (unknown) –
__construct(array|null $options)
Parameters:
  • $options (array|null) – Optional Options to instantiate in the adapter.
_setOptions($options)
Parameters:
  • $options (unknown) –
getOption(string $name)

Retrieve an option by name as it was passed to the constructor of the adapter.

Parameters:
  • $name (string) –
hasOption(string $name)

Whether or not the given option has been set.

Parameters:
  • $name (string) –
setQueueName($name)

Adapter implementations do not understand named queues by default, so this default implementation returns false. Override this in subclasses to specify the correct behavior.

Parameters:
  • $name (unknown) –

Project Versions

Previous topic

Omeka_Job_Dispatcher_Adapter_RequiredOptionException

Next topic

Omeka_Job_Dispatcher_Adapter_ZendQueue

This Page