org.mule.module.spring.events
Class AsynchronousEventListener
java.lang.Object
org.mule.module.spring.events.AsynchronousEventListener
- All Implemented Interfaces:
- EventListener, MuleEventListener, org.springframework.context.ApplicationListener
public class AsynchronousEventListener
- extends Object
- implements MuleEventListener
AsynchronousEventListener
will proces a received MuleEvent in a
separate Thread. The thread pool passed in the constructor will determine how many
threads can be executed at any time.
Field Summary |
protected static Log |
logger
logger used by this class |
Method Summary |
org.springframework.context.ApplicationListener |
getListener()
|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
- logger used by this class
AsynchronousEventListener
public AsynchronousEventListener(ExecutorService threadPool,
org.springframework.context.ApplicationListener listener)
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEvent
in interface org.springframework.context.ApplicationListener
getListener
public org.springframework.context.ApplicationListener getListener()
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.