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