本文整理了Java中com.unboundid.ldap.sdk.LDAPConnection.getConnectionPool()
方法的一些代码示例,展示了LDAPConnection.getConnectionPool()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LDAPConnection.getConnectionPool()
方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.LDAPConnection
类名称:LDAPConnection
方法名:getConnectionPool
[英]Retrieves the connection pool with which this connection is associated, if any.
[中]检索与此连接关联的连接池(如果有)。
代码示例来源:origin: apiman/apiman
public static void releaseDefunct(LDAPConnection connection) {
if (connection != null && connection.getConnectionPool() != null)
connection.getConnectionPool().releaseDefunctConnection(connection);
}
代码示例来源:origin: apiman/apiman
public static void releaseConnection(LDAPConnection connection) {
if (connection != null && connection.getConnectionPool() != null)
connection.getConnectionPool().releaseConnection(connection);
}
代码示例来源:origin: io.apiman/apiman-gateway-engine-core
public static void releaseDefunct(LDAPConnection connection) {
if (connection != null && connection.getConnectionPool() != null)
connection.getConnectionPool().releaseDefunctConnection(connection);
}
代码示例来源:origin: apiman/apiman
public static void releaseConnectionAfterException(LDAPConnection connection, LDAPException e) {
if (connection != null && connection.getConnectionPool() != null)
connection.getConnectionPool().releaseConnectionAfterException(connection, e);
}
代码示例来源:origin: io.apiman/apiman-gateway-engine-core
public static void releaseConnection(LDAPConnection connection) {
if (connection != null && connection.getConnectionPool() != null)
connection.getConnectionPool().releaseConnection(connection);
}
代码示例来源:origin: io.apiman/apiman-gateway-engine-core
public static void releaseConnectionAfterException(LDAPConnection connection, LDAPException e) {
if (connection != null && connection.getConnectionPool() != null)
connection.getConnectionPool().releaseConnectionAfterException(connection, e);
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Closes the connection.
*/
public void run()
{
final AbstractConnectionPool pool = connection.getConnectionPool();
if (pool != null)
{
final LDAPConnectionPoolStatistics stats =
pool.getConnectionPoolStatistics();
if (stats != null)
{
stats.incrementNumConnectionsClosedUnneeded();
}
}
connection.setDisconnectInfo(DisconnectType.POOL_CLOSED, null, null);
if (unbind)
{
connection.terminate(null);
}
else
{
connection.setClosed();
}
}
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Closes the connection.
*/
public void run()
{
final AbstractConnectionPool pool = connection.getConnectionPool();
if (pool != null)
{
final LDAPConnectionPoolStatistics stats =
pool.getConnectionPoolStatistics();
if (stats != null)
{
stats.incrementNumConnectionsClosedUnneeded();
}
}
connection.setDisconnectInfo(DisconnectType.POOL_CLOSED, null, null);
if (unbind)
{
connection.terminate(null);
}
else
{
connection.setClosed();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!