org.apache.james.util.watchdog
Class ThreadPerWatchdogFactory
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.james.util.watchdog.ThreadPerWatchdogFactory
- All Implemented Interfaces:
- LogEnabled, WatchdogFactory
- public class ThreadPerWatchdogFactory
- extends AbstractLogEnabled
- implements WatchdogFactory
This class is a factory to produce Watchdogs, each of which is associated
with a single thread.
- Author:
- Peter M. Goldstein
Constructor Summary |
ThreadPerWatchdogFactory(org.apache.avalon.excalibur.thread.ThreadPool theThreadPool,
long timeout)
Creates the factory and sets the thread pool used to generate
InaccurateTimeoutWatchdogs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadPerWatchdogFactory
public ThreadPerWatchdogFactory(org.apache.avalon.excalibur.thread.ThreadPool theThreadPool,
long timeout)
- Creates the factory and sets the thread pool used to generate
InaccurateTimeoutWatchdogs.
getWatchdog
public Watchdog getWatchdog(WatchdogTarget theTarget)
throws Exception
- Description copied from interface:
WatchdogFactory
- Gets a Watchdog
- Specified by:
getWatchdog
in interface WatchdogFactory
- Parameters:
theTarget
- the WatchdogTarget to be triggered upon expiration
Exception
- See Also:
WatchdogFactory.getWatchdog(WatchdogTarget)
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."