Have a look of FutureResult by Doug Lea <http://gee.cs.oswego.edu/dl> http://gee.cs.oswego.edu/dl/classes/index.html
Is not exactly what you ask for, you have to spawn the thread explicitly, but is a very good Pattern to follow.
Regards Jung, Eric wrote:
Hi,
Does anyone know of a generic watchdog class; i.e., a class which spawns a new thread, watching for a specified condition? I'm looking for something like log4j's org.apache.log4j.helpers.FileWatchDog class, but generalized for watching some custom condition.
Thank you in advance for any advice,
Eric Jung
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------------------------- Este correo electr�nico y, en su caso, cualquier fichero anexo al mismo, contiene informaci�n de car�cter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgaci�n, copia o distribuci�n a terceros sin la previa autorizaci�n escrita de Indra. En el caso de haber recibido este correo electr�nico por error, se ruega notificar inmediatamente esta circunstancia mediante reenv�o a la direcci�n electr�nica del remitente.
The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
