src/Eloquent/Repository.php
public function getByIdContinuouslyOrFail($id, array $columns = ['*'], $retries = 10, $delayMs = 100)
    {
        $result = $this->getByContinuously('id', $id, $columns, $retries, $delayMs);
        if (empty($result)) {
            throw new EntityNotFoundException(sprintf('%s not found continuously by Id with value [%s]',
                get_class($this->getModel()), $id));
        }

        return $result;
    }
public function getByIdContinuouslyOrFail($id, array $columns = ['*'], $retries = 10, $delayMs = 100)
    {
        $result = $this->getByContinuously('id', $id, $columns, $retries, $delayMs);
        if (empty($result)) {
            throw new EntityNotFoundException(sprintf('%s not found continuously by Id with value [%s]',
                get_class($this->getModel()), $id));
        }

        return $result;
    }
public function getByIdContinuouslyOrFail ( $ id , array $ columns = [ '*' ] , $ retries = 10 , $ delayMs = 100 ) { $ result = $ this -> getByContinuously ( 'id' , $ id , $ columns , $ retries , $ delayMs ) ; if ( empty ( $ result ) ) { throw new EntityNotFoundException ( sprintf ( '%s not found continuously by Id with value [%s]' , get_class ( $ this -> getModel ( ) ) , $ id ) ) ; } return $ result ; }
Retrieve entity by ID. Will retry with a delay until found or throw an exception.

Should only be used in queues, where databases are in a cluster
and there's a chance it's not always in sync

@author Rasmus Ebbesen <re@nodes.dk>

@param  int $id
@param  array   $columns
@param  int $retries
@param  int $delayMs
@return \Illuminate\Database\Eloquent\Model
@throws \Nodes\Database\Exceptions\EntityNotFoundException
Retrieve entity by ID . Will retry with a delay until found or throw an exception .