org.mule.extras.spring.events
Class AsynchronousEventListener

java.lang.Object
  extended byorg.mule.extras.spring.events.AsynchronousEventListener
All Implemented Interfaces:
MuleEventListener

public class AsynchronousEventListener
extends Object
implements MuleEventListener

AsynchronousEventListener will spawn a thread for each Event received. The thread pool passed in the constructor will determine hown many threads can be executed at any time.


Field Summary
protected static Log logger
          logger used by this class
 
Constructor Summary
AsynchronousEventListener(ExecutorService threadPool, ApplicationListener listener)
           
 
Method Summary
 ApplicationListener getListener()
           
 void onApplicationEvent(ApplicationEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static Log logger
logger used by this class

Constructor Detail

AsynchronousEventListener

public AsynchronousEventListener(ExecutorService threadPool,
                                 ApplicationListener listener)
Method Detail

onApplicationEvent

public void onApplicationEvent(ApplicationEvent event)

getListener

public ApplicationListener getListener()


Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.