com.unboundid.ldap.sdk.LDAPConnection.setConnectionName()方法的使用及代码示例

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

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

LDAPConnection.setConnectionName介绍

[英]Specifies the user-friendly name that should be used for this connection. This name may be used in debugging to help identify the purpose of this connection. This will have no effect for connections which are part of a connection pool.
[中]指定应用于此连接的用户友好名称。此名称可用于调试,以帮助识别此连接的用途。这对作为连接池一部分的连接没有影响。

代码示例

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

connection.setConnectionName("mod-" + threadNumber);

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

fixedRateBarrier      = rateBarrier;
searchConnection.setConnectionName("search-" + threadNumber);
bindConnection.setConnectionName("bind-" + threadNumber);

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

connection.setConnectionName("search-" + threadNumber);

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

connection.setConnectionName("search-and-mod-" + threadNumber);

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-minimal-edition

connection.setConnectionName(null);
connection.setConnectionPool(this);
connList.add(connection);

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

connection.setConnectionName(null);
connection.setConnectionPool(this);
connList.add(connection);

代码示例来源:origin: com.unboundid/unboundid-ldapsdk-commercial-edition

sourceConnection.setConnectionName(
   INFO_MOVE_SUBTREE_CONNECTION_NAME_SOURCE.get());
targetConnection.setConnectionName(
   INFO_MOVE_SUBTREE_CONNECTION_NAME_TARGET.get());

相关文章

LDAPConnection类方法