org.mule.work
Class AbstractMuleEventWork
java.lang.Object
org.mule.work.AbstractMuleEventWork
- All Implemented Interfaces:
- Runnable, javax.resource.spi.work.Work
- Direct Known Subclasses:
- JcaComponent.MuleJcaWorker
public abstract class AbstractMuleEventWork
- extends Object
- implements javax.resource.spi.work.Work
Abstract implementation of Work to be used whenever Work needs to be scheduled
that operates on a MuleEvent. The abstract implementation ensures that a copy of
MuleEvent is used and that this copy is available in the RequestContext for this
new thread. Implementations of AbstractMuleEventWork should be run/scheduled only
once. NOTE: This approach does not attempt to resolve MULE-4409 so this work may
need to be reverted to correctly fix MULE-4409 in future releases.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
event
protected MuleEvent event
AbstractMuleEventWork
public AbstractMuleEventWork(MuleEvent event)
run
public final void run()
- Specified by:
run
in interface Runnable
doRun
protected abstract void doRun()
release
public void release()
- Specified by:
release
in interface javax.resource.spi.work.Work
getEvent
public MuleEvent getEvent()
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.