protected function validateOptions(array $options) {
        $validator = \CharlotteDunois\Validation\Validator::make($options, array(
            'connections.max' => 'integer|min:1',
            'connections.lazy' => 'boolean'
        ));
        
        $validator->throw(\InvalidArgumentException::class);
    }