org.mule.impl.work
Class MuleWorkManager
java.lang.Object
org.mule.impl.work.MuleWorkManager
- All Implemented Interfaces:
- Disposable, Executor, Lifecycle, Startable, Stoppable, UMOWorkManager, WorkManager
- public class MuleWorkManager
- extends Object
- implements UMOWorkManager
MuleWorkManager
is a JCA Work manager implementation used to manage
thread allocation for Mule components and connectors. This code has been adapted
from the Geronimo implementation.
Field Summary |
protected static Log |
logger
logger used by this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
- logger used by this class
MuleWorkManager
public MuleWorkManager()
MuleWorkManager
public MuleWorkManager(ThreadingProfile profile,
String name)
start
public void start()
throws UMOException
- Specified by:
start
in interface Startable
- Throws:
UMOException
stop
public void stop()
throws UMOException
- Specified by:
stop
in interface Stoppable
- Throws:
UMOException
dispose
public void dispose()
- Description copied from interface:
Disposable
- A lifecycle method where implementor should free up any resources. If an
exception is thrown it should just be logged and processing should continue.
This method should not throw Runtime exceptions.
- Specified by:
dispose
in interface Disposable
getXATerminator
public XATerminator getXATerminator()
doWork
public void doWork(Work work)
throws WorkException
- Specified by:
doWork
in interface WorkManager
- Throws:
WorkException
doWork
public void doWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
throws WorkException
- Specified by:
doWork
in interface WorkManager
- Throws:
WorkException
startWork
public long startWork(Work work)
throws WorkException
- Specified by:
startWork
in interface WorkManager
- Throws:
WorkException
startWork
public long startWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
throws WorkException
- Specified by:
startWork
in interface WorkManager
- Throws:
WorkException
scheduleWork
public void scheduleWork(Work work)
throws WorkException
- Specified by:
scheduleWork
in interface WorkManager
- Throws:
WorkException
scheduleWork
public void scheduleWork(Work work,
long startTimeout,
ExecutionContext execContext,
WorkListener workListener)
throws WorkException
- Specified by:
scheduleWork
in interface WorkManager
- Throws:
WorkException
execute
public void execute(Runnable work)
- Specified by:
execute
in interface Executor
- See Also:
Executor.execute(Runnable)
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.