本文整理了Java中com.unboundid.ldap.sdk.LDAPConnection.setClosed()
方法的一些代码示例,展示了LDAPConnection.setClosed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LDAPConnection.setClosed()
方法的具体详情如下:
包路径:com.unboundid.ldap.sdk.LDAPConnection
类名称:LDAPConnection
方法名:setClosed
[英]Indicates that this connection has been closed and is no longer available for use.
[中]表示此连接已关闭,不再可用。
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Performs any necessary cleanup to ensure that this connection is properly
* closed before it is garbage collected.
*
* @throws Throwable If the superclass finalizer throws an exception.
*/
@Override()
protected void finalize()
throws Throwable
{
super.finalize();
setDisconnectInfo(DisconnectType.CLOSED_BY_FINALIZER, null, null);
setClosed();
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Performs any necessary cleanup to ensure that this connection is properly
* closed before it is garbage collected.
*
* @throws Throwable If the superclass finalizer throws an exception.
*/
@Override()
protected void finalize()
throws Throwable
{
super.finalize();
setDisconnectInfo(DisconnectType.CLOSED_BY_FINALIZER, null, null);
setClosed();
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
/**
* Indicates whether this connection is currently established.
*
* @return {@code true} if this connection is currently established, or
* {@code false} if it is not.
*/
public boolean isConnected()
{
final LDAPConnectionInternals internals = connectionInternals;
if (internals == null)
{
return false;
}
if (! internals.isConnected())
{
setClosed();
return false;
}
return (! needsReconnect.get());
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
/**
* Indicates whether this connection is currently established.
*
* @return {@code true} if this connection is currently established, or
* {@code false} if it is not.
*/
public boolean isConnected()
{
final LDAPConnectionInternals internals = connectionInternals;
if (internals == null)
{
return false;
}
if (! internals.isConnected())
{
setClosed();
return false;
}
return (! needsReconnect.get());
}
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
conn.setClosed();
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
conn.setClosed();
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
conn.setClosed();
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
connection.setClosed();
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition
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();
}
}
}
代码示例来源: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-minimal-edition
setClosed();
代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition
setClosed();
内容来源于网络,如有侵权,请联系作者删除!