@Override
public Connection connect(final String url, final Properties info) throws SQLException {
final String dbURL = url.replaceFirst("fiber:", "");
int threadCount = Integer.parseInt(info.getProperty(THREADS_COUNT, "10"));
info.remove(THREADS_COUNT);
ExecutorService es = Executors.newFixedThreadPool(threadCount, new ThreadFactoryBuilder().setNameFormat("jdbc-worker-%d").setDaemon(true).build());
try {
Connection con = FiberAsync.runBlocking(es, new CheckedCallable<Connection, SQLException>() {
@Override
public Connection call() throws SQLException {
return DriverManager.getConnection(dbURL, info);