public class MuleWorkManager extends Object implements WorkManager, MuleContextAware
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.Modifier and Type | Field and Description |
---|---|
protected static Log |
logger
logger used by this class
|
IMMEDIATE, INDEFINITE, UNKNOWN
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
MuleWorkManager(ThreadingProfile profile,
String name,
int shutdownTimeout) |
protected static final Log logger
public MuleWorkManager(ThreadingProfile profile, String name, int shutdownTimeout)
public void start() throws MuleException
start
in interface Startable
MuleException
public void dispose()
Disposable
dispose
in interface Disposable
public XATerminator getXATerminator()
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 execute(Runnable work)
execute
in interface Executor
Executor.execute(Runnable)
public boolean isStarted()
WorkManager
public MuleContext getMuleContext()
public void setMuleContext(MuleContext muleContext)
setMuleContext
in interface MuleContextAware
protected ThreadingProfile getThreadingProfile()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.