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 Log |
logger |
static String |
MULE_WAIT_MILLIS |
IMMEDIATE, INDEFINITE, UNKNOWN
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
TrackingWorkManager(WorkManagerHolder workManagerHolder,
int shutdownTimeout) |
protected static final 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()
WorkManager
public void dispose()
Disposable
dispose
in interface Disposable
public void start() throws MuleException
start
in interface Startable
MuleException
public void doWork(javax.resource.spi.work.Work work) throws javax.resource.spi.work.WorkException
doWork
in interface javax.resource.spi.work.WorkManager
javax.resource.spi.work.WorkException
public 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.WorkManager
javax.resource.spi.work.WorkException
public long startWork(javax.resource.spi.work.Work work) throws javax.resource.spi.work.WorkException
startWork
in interface javax.resource.spi.work.WorkManager
javax.resource.spi.work.WorkException
public 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.WorkManager
javax.resource.spi.work.WorkException
public void scheduleWork(javax.resource.spi.work.Work work) throws javax.resource.spi.work.WorkException
scheduleWork
in interface javax.resource.spi.work.WorkManager
javax.resource.spi.work.WorkException
public 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.WorkManager
javax.resource.spi.work.WorkException
public void setWorkListenerWrapperFactory(WorkListenerWrapperFactory workListenerWrapperFactory)
public void setWorkTracker(WorkTracker workTracker)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.