coreservlets
Class ConnectionPoolServlet2
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--coreservlets.ConnectionPoolServlet
|
+--coreservlets.ConnectionPoolServlet2
- public class ConnectionPoolServlet2
- extends ConnectionPoolServlet
A variation of ConnectionPoolServlet that uses only
a single connection, queueing up all requests to it.
Used to compare timing results.
Taken from Core Servlets and JavaServer Pages
from Prentice Hall and Sun Microsystems Press,
http://www.coreservlets.com/.
© 2000 Marty Hall; may be freely used or adapted.
- See Also:
- Serialized Form
|
Method Summary |
protected int |
initialConnections()
Override this in subclass to change number of initial
connections. |
protected int |
maxConnections()
Override this in subclass to change maximum number of
connections. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ConnectionPoolServlet2
public ConnectionPoolServlet2()
initialConnections
protected int initialConnections()
- Description copied from class: ConnectionPoolServlet
- Override this in subclass to change number of initial
connections.
- Overrides:
- initialConnections in class ConnectionPoolServlet
maxConnections
protected int maxConnections()
- Description copied from class: ConnectionPoolServlet
- Override this in subclass to change maximum number of
connections.
- Overrides:
- maxConnections in class ConnectionPoolServlet
 |
|---|
| CSAJSP @ amazon.com |
|---|