01: /*
02: * This file is part of the QuickServer library
03: * Copyright (C) 2003-2005 QuickServer.org
04: *
05: * Use, modification, copying and distribution of this software is subject to
06: * the terms and conditions of the GNU Lesser General Public License.
07: * You should have received a copy of the GNU LGP License along with this
08: * library; if not, you can download a copy from <http://www.quickserver.org/>.
09: *
10: * For questions, suggestions, bug-reports, enhancement-requests etc.
11: * visit http://www.quickserver.org
12: *
13: */
14:
15: package org.quickserver.net.server;
16:
17: import org.apache.commons.pool.*;
18: import org.quickserver.util.pool.thread.ClientPool;
19: import org.quickserver.util.xmlreader.PoolConfig;
20:
21: /**
22: * PoolManager interface.
23: * @author Akshathkumar Shetty
24: * @since 1.4.5
25: */
26: public interface PoolManager {
27: public ObjectPool makeByteBufferPool(PoolableObjectFactory factory,
28: PoolConfig opConfig);
29:
30: public ObjectPool makeClientPool(PoolableObjectFactory factory,
31: PoolConfig opConfig);
32:
33: public ObjectPool makeClientHandlerPool(
34: PoolableObjectFactory factory, PoolConfig opConfig);
35:
36: public ObjectPool makeClientDataPool(PoolableObjectFactory factory,
37: PoolConfig opConfig);
38:
39: public void initPool(ObjectPool objectPool, PoolConfig opConfig);
40: }
|