KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ofbiz > minerva > pool > PoolEventListener


1 /*
2  * Licensed under the X license (see http://www.x.org/terms.htm)
3  */

4 package org.ofbiz.minerva.pool;
5
6 /**
7  * A listener for object pool events.
8  *
9  * @author Aaron Mulder (ammulder@alumni.princeton.edu)
10  */

11 public interface PoolEventListener {
12
13     /**
14      * The pooled object was closed and should be returned to the pool.
15      */

16     public void objectClosed(PoolEvent evt);
17
18     /**
19      * The pooled object had an error and should be returned to the pool.
20      */

21     public void objectError(PoolEvent evt);
22
23     /**
24      * The pooled object was used and its timestamp should be updated.
25      */

26     public void objectUsed(PoolEvent evt);
27 }
28
Popular Tags