Omeka_Job_Dispatcher_Adapter_Synchronous
Package: Job\Dispatcher\Adapter
- class Omeka_Job_Dispatcher_Adapter_Synchronous
extends Omeka_Job_Dispatcher_Adapter_AbstractAdapter
implements Omeka_Job_Dispatcher_Adapter_AdapterInterface
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 not possible to use one of the other adapters, keep in mind that long jobs may lead to request timeouts or open the possibility of DoS attacks by malicious users.
- Omeka_Job_Dispatcher_Adapter_Synchronous::send($encodedJob, $metadata)
- Parameters:
$encodedJob –
$metadata –
- Omeka_Job_Dispatcher_Adapter_Synchronous::__construct($options = null)
- Parameters:
$options (
array|null
) – Optional Options to instantiate in the adapter.
- Omeka_Job_Dispatcher_Adapter_Synchronous::_setOptions($options)
- Parameters:
$options –
- Omeka_Job_Dispatcher_Adapter_Synchronous::getOption($name)
Retrieve an option by name as it was passed to the constructor of the adapter.
- Parameters:
$name (
string
) –
- Omeka_Job_Dispatcher_Adapter_Synchronous::hasOption($name)
Whether or not the given option has been set.
- Parameters:
$name (
string
) –
- Omeka_Job_Dispatcher_Adapter_Synchronous::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 –