public function setConnectTries($connectTries) {
        $this->connectTries = (int) $connectTries;
        if ($this->connectTries < 1) {
            throw new InvalidArgumentException('connect tries < 1');
        }
        return $this;
    }