class Illuminate / Events / CallQueuedListener

CallQueuedListener

Implements

Uses

Properties

public

$class string

The listener class name.

Default: null
public

$method string

The listener method.

Default: null
public

$data array

The data to be passed to the listener.

Default: null
public

$tries int

The number of times the job may be attempted.

Default: null
public

$maxExceptions int

The maximum number of exceptions allowed, regardless of attempts.

Default: null
public

$backoff int

The number of seconds to wait before retrying a job that encountered an uncaught exception.

Default: null
public

$retryUntil int

The timestamp indicating when the job should timeout.

Default: null
public

$timeout int

The number of seconds the job can run before timing out.

Default: null
public

$shouldBeEncrypted bool

Indicates if the job should be encrypted.

Default: false

Methods

public

__construct ( $class , $method , $data ) : void

Create a new job instance.

Parameters

  • $class string
  • $method string
  • $data array
public

handle ( Container $container ) : void

Handle the queued job.

Parameters

protected

setJobInstanceIfNecessary ( Job $job , $instance ) : object

Set the job instance of the given class if necessary.

Parameters

  • $job Job
  • $instance object
public

failed ( $e ) : void

Call the failed method on the job instance.

Parameters

protected

prepareData ( ) : void

Unserialize the data if needed.

public

displayName ( ) : string

Get the display name for the queued job.

public

__clone ( ) : void

Prepare the instance for cloning.