public function retry($afterDelay = 0)
    {
        // Setting the transition state to 'retry' will cause the next state
        // transition of the transaction to retry the request.
        $this->transaction->state = 'retry';

        if ($afterDelay) {
            $this->transaction->request->getConfig()->set('delay', $afterDelay);
        }

        $this->stopPropagation();
    }