public class TrackingWorkManager extends Object implements WorkManager
WorkManager to track the work that in process.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SLEEP_MILLIS |
protected static org.apache.commons.logging.Log |
logger |
static String |
MULE_WAIT_MILLIS |
PHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
TrackingWorkManager(WorkManagerHolder workManagerHolder,
int shutdownTimeout) |
| Modifier and Type | Method and Description |
|---|---|
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 startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener) |
void |
execute(Runnable runnable) |
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 startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener) |
void |
setWorkListenerWrapperFactory(WorkListenerWrapperFactory workListenerWrapperFactory) |
void |
setWorkTracker(WorkTracker workTracker) |
void |
start() |
long |
startWork(javax.resource.spi.work.Work work) |
long |
startWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener) |
protected static final org.apache.commons.logging.Log logger
public static final int DEFAULT_SLEEP_MILLIS
public static final String MULE_WAIT_MILLIS
public TrackingWorkManager(WorkManagerHolder workManagerHolder, int shutdownTimeout)
public boolean isStarted()
WorkManagerpublic void dispose()
Disposabledispose in interface Disposablepublic void start()
throws MuleException
start in interface StartableMuleExceptionpublic void doWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
doWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic void doWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
doWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic long startWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
startWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic long startWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
startWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic void scheduleWork(javax.resource.spi.work.Work work)
throws javax.resource.spi.work.WorkException
scheduleWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic void scheduleWork(javax.resource.spi.work.Work work,
long startTimeout,
javax.resource.spi.work.ExecutionContext execContext,
javax.resource.spi.work.WorkListener workListener)
throws javax.resource.spi.work.WorkException
scheduleWork in interface javax.resource.spi.work.WorkManagerjavax.resource.spi.work.WorkExceptionpublic void setWorkListenerWrapperFactory(WorkListenerWrapperFactory workListenerWrapperFactory)
public void setWorkTracker(WorkTracker workTracker)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.