You are here

public function JobResult::__construct in Advanced Queue 8

Constructs a new JobResult object.

Parameters

string $state: The state. Job::STATE_SUCCESS or JOB::STATE_FAILURE.

string $message: The message. Optional.

int $max_retries: The maximum number of retries.

int $retry_delay: The retry delay, in seconds.

File

src/JobResult.php, line 52

Class

JobResult
Represents a job result.

Namespace

Drupal\advancedqueue

Code

public function __construct($state, $message = '', $max_retries = NULL, $retry_delay = NULL) {
  $this->state = $state;
  $this->message = $message;
  $this->maxRetries = $max_retries;
  $this->retryDelay = $retry_delay;
}