1 /* 2 * JBoss, the OpenSource J2EE webOS 3 * 4 * Distributable under LGPL license. 5 * See terms of license at gnu.org. 6 */ 7 package org.jboss.mq.threadpool; 8 9 /** 10 * This is the interface of work that the thread pool can do. 11 * 12 * Users of the thread pool enqueue an object implementing this 13 * interface to have one of the threads in the thread pool call 14 * back the method declared here. 15 * 16 * @author Ole Husgaard (osh@sparre.dk) 17 * @version $Revision: 1.1 $ 18 */ 19 public interface Work 20 { 21 /** 22 * Callback to do the actual work. 23 */ 24 public void doWork(); 25 } 26