/**
  * {@inheritdoc}
  * Returns a clone of the wrapped envelope, not itself.
  */
 public function retry()
 {
     return $this->wrapped->retry();
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function canRetry(Envelope $env)
 {
     return $env->attempts() < $this->maxAttempts;
 }
Example #3
0
 /**
  * @inheritDoc
  */
 public function retry($queueName, Envelope $envelope)
 {
     return $envelope->retry();
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function retry($queueName, Envelope $envelope)
 {
     $e = $envelope->retry();
     $this->enqueueEnvelope($queueName, $e);
     return $e;
 }