Queueable
Properties
$connection string|null
The name of the connection the job should be sent to.
$queue string|null
The name of the queue the job should be sent to.
$chainConnection string|null
The name of the connection the chain should be sent to.
$chainQueue string|null
The name of the queue the chain should be sent to.
$chainCatchCallbacks array|null
The callbacks to be executed on chain failure.
$delay DateTimeInterface |DateInterval |array|int|null
The number of seconds before the job should be made available.
$afterCommit bool|null
Indicates whether the job should be dispatched after all database transactions have committed.
$middleware array
The middleware the job should be dispatched through.
$chained array
The jobs that should run if this job is successful.
Methods
onConnection ( $connection ) : $this
Set the desired connection for the job.
Parameters
- $connection string|null
onQueue ( $queue ) : $this
Set the desired queue for the job.
Parameters
- $queue string|null
allOnConnection ( $connection ) : $this
Set the desired connection for the chain.
Parameters
- $connection string|null
allOnQueue ( $queue ) : $this
Set the desired queue for the chain.
Parameters
- $queue string|null
delay ( $delay ) : $this
Set the desired delay in seconds for the job.
Parameters
- $delay DateTimeInterface |DateInterval |array|int|null
afterCommit ( ) : $this
Indicate that the job should be dispatched after all database transactions have committed.
beforeCommit ( ) : $this
Indicate that the job should not wait until database transactions have been committed before dispatching.
through ( $middleware ) : $this
Specify the middleware the job should be dispatched through.
Parameters
- $middleware array|object
chain ( $chain ) : $this
Set the jobs that should run if this job is successful.
Parameters
- $chain array
prependToChain ( $job ) : $this
Prepend a job to the current chain so that it is run after the currently running job.
Parameters
- $job mixed
appendToChain ( $job ) : $this
Append a job to the end of the current chain.
Parameters
- $job mixed
serializeJob ( $job ) : string
Serialize a job for queuing.
Parameters
- $job mixed
dispatchNextJobInChain ( ) : void
Dispatch the next job on the chain.
invokeChainCatchCallbacks ( $e ) : void
Invoke all of the chain's failed job callbacks.
Parameters
- $e Throwable