com.jolbox.bonecp.BoneCP.shutdown()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(159)

本文整理了Java中com.jolbox.bonecp.BoneCP.shutdown()方法的一些代码示例,展示了BoneCP.shutdown()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BoneCP.shutdown()方法的具体详情如下:
包路径:com.jolbox.bonecp.BoneCP
类名称:BoneCP
方法名:shutdown

BoneCP.shutdown介绍

[英]Closes off this connection pool.
[中]关闭此连接池。

代码示例

代码示例来源:origin: org.batoo.jpa/batoo-jpa

/**
 * Close the datasource.
 * 
 */
public void close() {
  if (this.pool != null) {
    this.pool.value.shutdown();
    this.pool = null;
  }
}

代码示例来源:origin: org.wisdom-framework/wisdom-jdbc-datasources

/**
 * Just a synonym to shutdown.
 */
public void close() {
  shutdown();
}

代码示例来源:origin: org.ddbstoolkit.toolkit.jdbc/ddbstoolkit-jdbc

/**
 * Shutdown connection pool
 */
public void shutdownConnectionPool() {
  connectionPool.shutdown();
}

代码示例来源:origin: org.apache.qpid/qpid-broker-plugins-jdbc-provider-bone

@Override
  public void close() throws SQLException
  {
    _connectionPool.shutdown();
  }
}

代码示例来源:origin: org.apache.sentry/sentry-shaded-miscellaneous

/** Just a synonym to shutdown. */
public void close(){
  shutdown();
}

代码示例来源:origin: dhanji/sitebricks

@Override
public synchronized void shutdown() {
 pool.shutdown();
}

代码示例来源:origin: datasalt/splout-db

public void close() {
 connectionPool.shutdown();
}

代码示例来源:origin: com.splout.db/splout-commons

public void close() {
  connectionPool.shutdown();
}

代码示例来源:origin: com.github.javaclub/jorm

public void realReleaseAllConnections() throws JdbcException {
  try {
    bonecp.shutdown();
  } catch (Exception e) {
    e.printStackTrace();
    throw new JdbcException(e);
  }
}

代码示例来源:origin: org.apache.sentry/sentry-shaded-miscellaneous

/**
 * Close the datasource (i.e. shut down the entire pool). 
 *
 */
public void close(){
  
  if (getPool() != null){
    getPool().shutdown();
    logger.debug("Connection pool has been shut down");
  }
}

代码示例来源:origin: stackoverflow.com

pool.shutdown();

代码示例来源:origin: yangbutao/disgear

connectionPool.shutdown(); // shutdown connection pool.
} catch (SQLException e) {
  e.printStackTrace();

相关文章