public function allowedRetries()
  {
    if (isset($this->retryMap[$this->code])) {
      return $this->retryMap[$this->code];
    }

    return 0;
  }
public function allowedRetries()
  {
    if (isset($this->retryMap[$this->code])) {
      return $this->retryMap[$this->code];
    }

    return 0;
  }
public function allowedRetries ( ) { if ( isset ( $ this -> retryMap [ $ this -> code ] ) ) { return $ this -> retryMap [ $ this -> code ] ; } return 0 ; }
Gets the number of times the associated task can be retried.

NOTE: -1 is returned if the task can be retried indefinitely

@return integer
Gets the number of times the associated task can be retried .