public function createJob($storeName, $reindex, $background, $queueName = null)
    {
        $configInstance = $this->getConfigInstance();
        if (!$queueName) {
            $queueName = $configInstance::getEnsureIndexesQueueName();
        } elseif (strpos($queueName, $configInstance::getEnsureIndexesQueueName()) === false) {
            $queueName = $configInstance::getEnsureIndexesQueueName() . '::' . $queueName;
        }

        $data = [
            self::STORENAME_KEY => $storeName,
            self::REINDEX_KEY => $reindex,
            self::BACKGROUND_KEY => $background
        ];

        $this->submitJob($queueName, get_class($this), array_merge($data, $this->generateConfigJobArgs()));
    }
public function createJob($storeName, $reindex, $background, $queueName = null)
    {
        $configInstance = $this->getConfigInstance();
        if (!$queueName) {
            $queueName = $configInstance::getEnsureIndexesQueueName();
        } elseif (strpos($queueName, $configInstance::getEnsureIndexesQueueName()) === false) {
            $queueName = $configInstance::getEnsureIndexesQueueName() . '::' . $queueName;
        }

        $data = [
            self::STORENAME_KEY => $storeName,
            self::REINDEX_KEY => $reindex,
            self::BACKGROUND_KEY => $background
        ];

        $this->submitJob($queueName, get_class($this), array_merge($data, $this->generateConfigJobArgs()));
    }
public function createJob ( $ storeName , $ reindex , $ background , $ queueName = null ) { $ configInstance = $ this -> getConfigInstance ( ) ; if ( ! $ queueName ) { $ queueName = $ configInstance :: getEnsureIndexesQueueName ( ) ; } elseif ( strpos ( $ queueName , $ configInstance :: getEnsureIndexesQueueName ( ) ) === false ) { $ queueName = $ configInstance :: getEnsureIndexesQueueName ( ) . '::' . $ queueName ; } $ data = [ self :: STORENAME_KEY => $ storeName , self :: REINDEX_KEY => $ reindex , self :: BACKGROUND_KEY => $ background ] ; $ this -> submitJob ( $ queueName , get_class ( $ this ) , array_merge ( $ data , $ this -> generateConfigJobArgs ( ) ) ) ; }
This method is use to schedule an EnsureIndexes job.

@param string $storeName
@param booelan $reindex
@param string $queueName
This method is use to schedule an EnsureIndexes job .