org.mule.module.jca
Class DelegateWorkManager
java.lang.Object
org.mule.module.jca.DelegateWorkManager
- All Implemented Interfaces:
- edu.emory.mathcs.backport.java.util.concurrent.Executor, javax.resource.spi.work.WorkManager, Disposable, Startable
public class DelegateWorkManager
- extends java.lang.Object
- implements WorkManager
DelegateWorkManager
is a wrapper around a WorkManager provided by a
JCA container.
Fields inherited from interface javax.resource.spi.work.WorkManager |
IMMEDIATE, INDEFINITE, UNKNOWN |
Method Summary |
void |
dispose()
A lifecycle method where implementor should free up any resources. |
void |
doWork(javax.resource.spi.work.Work work)
|
void |
doWork(javax.resource.spi.work.Work work,
long l,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener)
|
void |
execute(java.lang.Runnable command)
|
ImmutableThreadingProfile |
getThreadingProfile()
|
boolean |
isStarted()
Is the WorkManager ready to accept work? |
void |
scheduleWork(javax.resource.spi.work.Work work)
|
void |
scheduleWork(javax.resource.spi.work.Work work,
long l,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener)
|
void |
start()
|
long |
startWork(javax.resource.spi.work.Work work)
|
long |
startWork(javax.resource.spi.work.Work work,
long l,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener)
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegateWorkManager
public DelegateWorkManager(javax.resource.spi.work.WorkManager workManager2)
doWork
public void doWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
- Specified by:
doWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
doWork
public void doWork(javax.resource.spi.work.Work work,
long l,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
- Specified by:
doWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
startWork
public long startWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
- Specified by:
startWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
startWork
public long startWork(javax.resource.spi.work.Work work,
long l,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
- Specified by:
startWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
scheduleWork
public void scheduleWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
- Specified by:
scheduleWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
scheduleWork
public void scheduleWork(javax.resource.spi.work.Work work,
long l,
javax.resource.spi.work.ExecutionContext executionContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
- Specified by:
scheduleWork
in interface javax.resource.spi.work.WorkManager
- Throws:
javax.resource.spi.work.WorkException
execute
public void execute(java.lang.Runnable command)
- Specified by:
execute
in interface edu.emory.mathcs.backport.java.util.concurrent.Executor
start
public void start()
throws MuleException
- Specified by:
start
in interface Startable
- Throws:
MuleException
isStarted
public boolean isStarted()
- Description copied from interface:
WorkManager
- Is the WorkManager ready to accept work?
stop
public void stop()
throws MuleException
- Throws:
MuleException
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
getThreadingProfile
public ImmutableThreadingProfile getThreadingProfile()
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.