class
Illuminate
/
Events
/
QueuedClosure
QueuedClosure
Properties
public
$connection string|null
The name of the connection the job should be sent to.
Default: null
public
$queue string|null
The name of the queue the job should be sent to.
Default: null
public
$delay DateTimeInterface |DateInterval |int|null
The number of seconds before the job should be made available.
Default: null
public
$catchCallbacks array
All of the "catch" callbacks for the queued closure.
Default: []
Methods
public
__construct ( Closure $closure ) : void
Create a new queued closure event listener resolver.
Parameters
- $closure Closure
public
onConnection ( $connection ) : $this
Set the desired connection for the job.
Parameters
- $connection string|null
public
onQueue ( $queue ) : $this
Set the desired queue for the job.
Parameters
- $queue string|null
public
delay ( $delay ) : $this
Set the desired delay in seconds for the job.
Parameters
- $delay DateTimeInterface |DateInterval |int|null