01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.pool;
10:
11: /**
12: * @author Andrew Suprun
13: */
14: public interface Pool {
15:
16: public static final int UNLIMITTED = -1;
17:
18: void start();
19:
20: Object acquireResource();
21:
22: void releaseResource(Object resource);
23:
24: void shutdown();
25:
26: void releaseBadResource(Object resource);
27:
28: int getMaxSize();
29: }
|