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

📄 genericobjectpool.html

📁 优秀的文档,可以学习java之用 0006728337 00000 n 0006728424 00000 n 0006728600 00000 n
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.commons.pool.BaseObjectPool"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.apache.commons.pool.<A HREF="../../../../../org/apache/commons/pool/BaseObjectPool.html" title="class in org.apache.commons.pool">BaseObjectPool</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/commons/pool/BaseObjectPool.html#assertOpen()">assertOpen</A>, <A HREF="../../../../../org/apache/commons/pool/BaseObjectPool.html#isClosed()">isClosed</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="WHEN_EXHAUSTED_FAIL"><!-- --></A><H3>WHEN_EXHAUSTED_FAIL</H3><PRE>public static final byte <B>WHEN_EXHAUSTED_FAIL</B></PRE><DL><DD>A "when exhausted action" type indicating that when the pool is exhausted (i.e., the maximum number of active objects has been reached), the <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><CODE>borrowObject()</CODE></A> method should fail, throwing a <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/NoSuchElementException.html" title="class or interface in java.util"><CODE>NoSuchElementException</CODE></A>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><CODE>WHEN_EXHAUSTED_BLOCK</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><CODE>WHEN_EXHAUSTED_GROW</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><CODE>setWhenExhaustedAction(byte)</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.WHEN_EXHAUSTED_FAIL">Constant Field Values</A></DL></DL><HR><A NAME="WHEN_EXHAUSTED_BLOCK"><!-- --></A><H3>WHEN_EXHAUSTED_BLOCK</H3><PRE>public static final byte <B>WHEN_EXHAUSTED_BLOCK</B></PRE><DL><DD>A "when exhausted action" type indicating that when the pool is exhausted (i.e., the maximum number of active objects has been reached), the <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><CODE>borrowObject()</CODE></A> method should block until a new object is available, or the <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><CODE>maximum wait time</CODE></A> has been reached.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL"><CODE>WHEN_EXHAUSTED_FAIL</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><CODE>WHEN_EXHAUSTED_GROW</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><CODE>setMaxWait(long)</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><CODE>getMaxWait()</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><CODE>setWhenExhaustedAction(byte)</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.WHEN_EXHAUSTED_BLOCK">Constant Field Values</A></DL></DL><HR><A NAME="WHEN_EXHAUSTED_GROW"><!-- --></A><H3>WHEN_EXHAUSTED_GROW</H3><PRE>public static final byte <B>WHEN_EXHAUSTED_GROW</B></PRE><DL><DD>A "when exhausted action" type indicating that when the pool is exhausted (i.e., the maximum number of active objects has been reached), the <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><CODE>borrowObject()</CODE></A> method should simply create a new object anyway.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL"><CODE>WHEN_EXHAUSTED_FAIL</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><CODE>WHEN_EXHAUSTED_GROW</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><CODE>setWhenExhaustedAction(byte)</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.WHEN_EXHAUSTED_GROW">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_MAX_IDLE"><!-- --></A><H3>DEFAULT_MAX_IDLE</H3><PRE>public static final int <B>DEFAULT_MAX_IDLE</B></PRE><DL><DD>The default cap on the number of "sleeping" instances in the pool.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxIdle()"><CODE>getMaxIdle()</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxIdle(int)"><CODE>setMaxIdle(int)</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_MAX_IDLE">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_MIN_IDLE"><!-- --></A><H3>DEFAULT_MIN_IDLE</H3><PRE>public static final int <B>DEFAULT_MIN_IDLE</B></PRE><DL><DD>The default minimum number of "sleeping" instances in the pool before before the evictor thread (if active) spawns new objects.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMinIdle()"><CODE>getMinIdle()</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMinIdle(int)"><CODE>setMinIdle(int)</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_MIN_IDLE">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_MAX_ACTIVE"><!-- --></A><H3>DEFAULT_MAX_ACTIVE</H3><PRE>public static final int <B>DEFAULT_MAX_ACTIVE</B></PRE><DL><DD>The default cap on the total number of active instances from the pool.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxActive()"><CODE>getMaxActive()</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_MAX_ACTIVE">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_WHEN_EXHAUSTED_ACTION"><!-- --></A><H3>DEFAULT_WHEN_EXHAUSTED_ACTION</H3><PRE>public static final byte <B>DEFAULT_WHEN_EXHAUSTED_ACTION</B></PRE><DL><DD>The default "when exhausted action" for the pool.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><CODE>WHEN_EXHAUSTED_BLOCK</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_FAIL"><CODE>WHEN_EXHAUSTED_FAIL</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_GROW"><CODE>WHEN_EXHAUSTED_GROW</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setWhenExhaustedAction(byte)"><CODE>setWhenExhaustedAction(byte)</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_MAX_WAIT"><!-- --></A><H3>DEFAULT_MAX_WAIT</H3><PRE>public static final long <B>DEFAULT_MAX_WAIT</B></PRE><DL><DD>The default maximum amount of time (in millis) the <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#borrowObject()"><CODE>borrowObject()</CODE></A> method should block before throwing an exception when the pool is exhausted and the <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getWhenExhaustedAction()"><CODE>"when exhausted" action</CODE></A> is <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#WHEN_EXHAUSTED_BLOCK"><CODE>WHEN_EXHAUSTED_BLOCK</CODE></A>.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getMaxWait()"><CODE>getMaxWait()</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setMaxWait(long)"><CODE>setMaxWait(long)</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_MAX_WAIT">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_TEST_ON_BORROW"><!-- --></A><H3>DEFAULT_TEST_ON_BORROW</H3><PRE>public static final boolean <B>DEFAULT_TEST_ON_BORROW</B></PRE><DL><DD>The default "test on borrow" value.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnBorrow()"><CODE>getTestOnBorrow()</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnBorrow(boolean)"><CODE>setTestOnBorrow(boolean)</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_TEST_ON_BORROW">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_TEST_ON_RETURN"><!-- --></A><H3>DEFAULT_TEST_ON_RETURN</H3><PRE>public static final boolean <B>DEFAULT_TEST_ON_RETURN</B></PRE><DL><DD>The default "test on return" value.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestOnReturn()"><CODE>getTestOnReturn()</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestOnReturn(boolean)"><CODE>setTestOnReturn(boolean)</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_TEST_ON_RETURN">Constant Field Values</A></DL></DL><HR><A NAME="DEFAULT_TEST_WHILE_IDLE"><!-- --></A><H3>DEFAULT_TEST_WHILE_IDLE</H3><PRE>public static final boolean <B>DEFAULT_TEST_WHILE_IDLE</B></PRE><DL><DD>The default "test while idle" value.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTestWhileIdle()"><CODE>getTestWhileIdle()</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTestWhileIdle(boolean)"><CODE>setTestWhileIdle(boolean)</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#getTimeBetweenEvictionRunsMillis()"><CODE>getTimeBetweenEvictionRunsMillis()</CODE></A>, <A HREF="../../../../../org/apache/commons/pool/impl/GenericObjectPool.html#setTimeBetweenEvictionRunsMillis(long)"><CODE>setTimeBetweenEvictionRunsMillis(long)</CODE></A>, <A HREF="../../../../../constant-values.html#org.apache.commons.pool.impl.GenericObjectPool.DEFAULT_TEST_WHILE_IDLE">Constant Field Values</A></DL></DL><

⌨️ 快捷键说明

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