core/src/main/java/com/orientechnologies/orient/core/db/ODatabasePoolBase.java
public DB acquire(final String iName, final String iUserName, final String iUserPassword) {
    setup();
    return dbPool.acquire(iName, iUserName, iUserPassword);
  }
public DB acquire(final String iName, final String iUserName, final String iUserPassword) {
    setup();
    return dbPool.acquire(iName, iUserName, iUserPassword);
  }
public DB acquire ( final String iName , final String iUserName , final String iUserPassword ) { setup ( ) ; return dbPool . acquire ( iName , iUserName , iUserPassword ) ; }
Acquires a connection from the pool. If the pool is empty, then the caller thread will wait for it.

@param iName
Database name
@param iUserName
User name
@param iUserPassword
User password
@return A pooled database instance
Acquires a connection from the pool . If the pool is empty then the caller thread will wait for it .