configure(options) {
    if (this._connector)
      throw new Error('The EntityManagerFactory can only be configured before is is connected.');

    if (options.tokenStorage) {
      /** @type util.TokenStorage */
      this.tokenStorage = options.tokenStorage;
    }

    if (options.tokenStorageFactory) {
      this.tokenStorageFactory = options.tokenStorageFactory;
    }

    if (options.staleness !== undefined) {
      /** @type number */
      this.staleness = options.staleness;
    }
  }
/**
   * Apply additional configurations to this EntityManagerFactory
   * @param {Object} options The additional configuration options
   * @param {util.TokenStorage} [options.tokenStorage] The tokenStorage which should be used by this emf
   * @param {util.TokenStorageFactory} [options.tokenStorageFactory] The tokenStorage factory implementation which should
   * be used for token storage
   * @param {number} [options.staleness=60] The maximum staleness of objects that are acceptable while reading cached data,
   * <code>0</code> to always bypass the browser cache
   */
Apply additional configurations to this EntityManagerFactory
@param {Object} options The additional configuration options
@param {util.TokenStorage} [options.tokenStorage] The tokenStorage which should be used by this emf
@param {util.TokenStorageFactory} [options.tokenStorageFactory] The tokenStorage factory implementation which should
be used for token storage
@param {number} [options.staleness=60] The maximum staleness of objects that are acceptable while reading cached data,
0 to always bypass the browser cache
Apply additional configurations to this EntityManagerFactory @param { Object } options The additional configuration options @param { util . TokenStorage } [ options . tokenStorage ] The tokenStorage which should be used by this emf @param { util . TokenStorageFactory } [ options . tokenStorageFactory ] The tokenStorage factory implementation which should be used for token storage @param { number } [ options . staleness = 60 ] The maximum staleness of objects that are acceptable while reading cached data 0 to always bypass the browser cache
configure(options) {
    if (this._connector)
      throw new Error('The EntityManagerFactory can only be configured before is is connected.');
    if (options.tokenStorage) {
      this.tokenStorage = options.tokenStorage;
    }
    if (options.tokenStorageFactory) {
      this.tokenStorageFactory = options.tokenStorageFactory;
    }
    if (options.staleness !== undefined) {
      this.staleness = options.staleness;
    }
  }
configure ( options ) { if ( this . _connector ) throw new Error ( 'The EntityManagerFactory can only be configured before is is connected.' ) ; if ( options . tokenStorage ) { this . tokenStorage = options . tokenStorage ; } if ( options . tokenStorageFactory ) { this . tokenStorageFactory = options . tokenStorageFactory ; } if ( options . staleness !== undefined ) { this . staleness = options . staleness ; } }
Apply additional configurations to this EntityManagerFactory
 @param {Object} options The additional configuration options
 @param {util.TokenStorage} [options.tokenStorage] The tokenStorage which should be used by this emf
 @param {util.TokenStorageFactory} [options.tokenStorageFactory] The tokenStorage factory implementation which should
 be used for token storage
 @param {number} [options.staleness=60] The maximum staleness of objects that are acceptable while reading cached data,
 <code>0</code> to always bypass the browser cache
Apply additional configurations to this EntityManagerFactory @param { Object } options The additional configuration options @param { util . TokenStorage } [ options . tokenStorage ] The tokenStorage which should be used by this emf @param { util . TokenStorageFactory } [ options . tokenStorageFactory ] The tokenStorage factory implementation which should be used for token storage @param { number } [ options . staleness = 60 ] The maximum staleness of objects that are acceptable while reading cached data <code > 0< / code > to always bypass the browser cache
/** @type util.TokenStorage */ /** @type number */