KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > pool > thread > ThreadTask


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.pool.thread;
8
9 import org.jfox.pool.ObjectPool;
10
11 /**
12  * a thread test wrap the Threadable tast
13  *
14  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
15  */

16
17 class ThreadTask {
18     private Threadable task = null;
19     private ObjectPool pool = null;
20
21     public ThreadTask(Threadable task, ObjectPool pool) {
22         this.task = task;
23         this.pool = pool;
24     }
25
26     Threadable getTask() {
27         return task;
28     }
29
30     public ObjectPool getPool() {
31         return pool;
32     }
33 }
34
Popular Tags