public function jscan($count = 50, array $queues = [], array $states = [], $format = JScanIterator::FORMAT_ID)
    {
        $iterator = new JScanIterator($this->stream, $this->log);
        $iterator->setCount($count);
        $iterator->setQueues($queues);
        $iterator->setStates($states);
        $iterator->setFormat($format);

        return $iterator;
    }