01: /**
02: * $Id: Pool.java,v 1.6 2005/12/02 13:53:25 as133206 Exp $
03: * Copyright 2002 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.common.pool;
14:
15: import com.sun.portal.desktop.monitoring.PoolStatistic;
16:
17: public interface Pool {
18: public Object obtainObject(Object param);
19:
20: public void releaseObject(Object o);
21:
22: public int getLeased();
23:
24: public int getMinSize();
25:
26: public int getMaxSize();
27:
28: public void setMaxSize(int maxSize);
29:
30: public long size();
31:
32: public void destroy();
33:
34: public boolean doesReuseObjects();
35:
36: public void setPoolStatistic(PoolStatistic poolStatistic);
37: }
|