01: // ***************************************************************
02: // * *
03: // * File: Pool.java *
04: // * *
05: // * Copyright (c) 2002 Sun Microsystems, Inc. *
06: // * All rights reserved. *
07: // * *
08: // * *
09: // * Author - alejandro.abdelnur@sun.com *
10: // * *
11: // ***************************************************************
12:
13: package com.sun.portal.common.pool;
14:
15: public interface Pool {
16:
17: public Object obtainObject(Object param);
18:
19: public void releaseObject(Object o);
20:
21: public int getLeased();
22:
23: public int getMinSize();
24:
25: public int getMaxSize();
26:
27: public void setMaxSize(int maxSize);
28:
29: public void destroy();
30:
31: public boolean doesReuseObjects();
32:
33: }
|