01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package org.huihoo.jfox.pool.thread;
09:
10: import org.huihoo.jfox.pool.PoolableObject;
11:
12: /**
13: *
14: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
15: */
16:
17: interface ThreadPoolableObject extends PoolableObject {
18: /**
19: * destroy this thread
20: */
21: void discard();
22:
23: void setTask(ThreadTask task);
24:
25: }
|