class Illuminate / Events / QueuedClosure

QueuedClosure

Properties

public

$closure Closure

The underlying Closure.

Default: null
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

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

public

catch ( Closure $closure ) : $this

Specify a callback that should be invoked if the queued listener job fails.

Parameters

public

resolve ( ) : Closure

Resolve the actual event listener callback.