⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaultconnectionprovider.html

📁 开源软件openfire的API文件。进行openfire的二次开发所必需的工具。
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DD>Sets the password used to connect to the database. In some cases, a password is not needed so null should be passed in.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>password</CODE> - the password used to connect to the database.</DL></DD></DL><HR><A NAME="getMinConnections()"><!-- --></A><H3>getMinConnections</H3><PRE>public int <B>getMinConnections</B>()</PRE><DL><DD>Returns the minimum number of connections that the pool will use. This should probably be at least three.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the minimum number of connections in the pool.</DL></DD></DL><HR><A NAME="setMinConnections(int)"><!-- --></A><H3>setMinConnections</H3><PRE>public void <B>setMinConnections</B>(int&nbsp;minConnections)</PRE><DL><DD>Sets the minimum number of connections that the pool will use. This should probably be at least three.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>minConnections</CODE> - the minimum number of connections in the pool.</DL></DD></DL><HR><A NAME="getMaxConnections()"><!-- --></A><H3>getMaxConnections</H3><PRE>public int <B>getMaxConnections</B>()</PRE><DL><DD>Returns the maximum number of connections that the pool will use. The actual number of connections in the pool will vary between this value and the minimum based on the current load.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the max possible number of connections in the pool.</DL></DD></DL><HR><A NAME="setMaxConnections(int)"><!-- --></A><H3>setMaxConnections</H3><PRE>public void <B>setMaxConnections</B>(int&nbsp;maxConnections)</PRE><DL><DD>Sets the maximum number of connections that the pool will use. The actual number of connections in the pool will vary between this value and the minimum based on the current load.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>maxConnections</CODE> - the max possible number of connections in the pool.</DL></DD></DL><HR><A NAME="getConnectionTimeout()"><!-- --></A><H3>getConnectionTimeout</H3><PRE>public double <B>getConnectionTimeout</B>()</PRE><DL><DD>Returns the amount of time between connection recycles in days. For example, a value of .5 would correspond to recycling the connections in the pool once every half day.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the amount of time in days between connection recycles.</DL></DD></DL><HR><A NAME="setConnectionTimeout(double)"><!-- --></A><H3>setConnectionTimeout</H3><PRE>public void <B>setConnectionTimeout</B>(double&nbsp;connectionTimeout)</PRE><DL><DD>Sets the amount of time between connection recycles in days. For example, a value of .5 would correspond to recycling the connections in the pool once every half day.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>connectionTimeout</CODE> - the amount of time in days between connection                          recycles.</DL></DD></DL><HR><A NAME="getTestSQL()"><!-- --></A><H3>getTestSQL</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getTestSQL</B>()</PRE><DL><DD>Returns the SQL statement used to test if a connection is valid.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the SQL statement that will be run to test a connection.</DL></DD></DL><HR><A NAME="setTestSQL(java.lang.String)"><!-- --></A><H3>setTestSQL</H3><PRE>public void <B>setTestSQL</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;testSQL)</PRE><DL><DD>Sets the SQL statement used to test if a connection is valid.  House keeping and before/after connection tests make use of this.  This should be something that causes the minimal amount of work by the database server and is as quick as possible.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>testSQL</CODE> - the SQL statement that will be run to test a connection.</DL></DD></DL><HR><A NAME="getTestBeforeUse()"><!-- --></A><H3>getTestBeforeUse</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A> <B>getTestBeforeUse</B>()</PRE><DL><DD>Returns whether returned connections will be tested before being handed over to be used.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>True if connections are tested before use.</DL></DD></DL><HR><A NAME="setTestBeforeUse(java.lang.Boolean)"><!-- --></A><H3>setTestBeforeUse</H3><PRE>public void <B>setTestBeforeUse</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A>&nbsp;testBeforeUse)</PRE><DL><DD>Sets whether connections will be tested before being handed over to be used.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>testBeforeUse</CODE> - True or false if connections are to be tested before use.</DL></DD></DL><HR><A NAME="getTestAfterUse()"><!-- --></A><H3>getTestAfterUse</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A> <B>getTestAfterUse</B>()</PRE><DL><DD>Returns whether returned connections will be tested after being returned to the pool.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>True if connections are tested after use.</DL></DD></DL><HR><A NAME="setTestAfterUse(java.lang.Boolean)"><!-- --></A><H3>setTestAfterUse</H3><PRE>public void <B>setTestAfterUse</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A>&nbsp;testAfterUse)</PRE><DL><DD>Sets whether connections will be tested after being returned to the pool.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>testAfterUse</CODE> - True or false if connections are to be tested after use.</DL></DD></DL><HR><A NAME="isMysqlUseUnicode()"><!-- --></A><H3>isMysqlUseUnicode</H3><PRE>public boolean <B>isMysqlUseUnicode</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></DL></DD><DD><DL></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../org/jivesoftware/database/DbConnectionManager.DatabaseType.html" title="enum in org.jivesoftware.database"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../org/jivesoftware/database/DefaultConnectionProviderBeanInfo.html" title="class in org.jivesoftware.database"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?org/jivesoftware/database/DefaultConnectionProvider.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DefaultConnectionProvider.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &copy; 2003-2008 Jive Software.</i></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -