org.jboss.soa.esb.listeners.message
Class AbstractListener

java.lang.Object
  extended by org.jboss.soa.esb.listeners.message.AbstractListener
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
AbstractPassiveListener, JmsQueueListener

public abstract class AbstractListener
extends java.lang.Object
implements java.lang.Runnable

Base class for listener implementations which will be responsible for implementing some sort of blocking receive whithin the run() method.

Author:
Johan Kumps

Field Summary
protected  ConfigTree _config
           
protected  EsbListenerController _controller
           
protected  org.apache.log4j.Logger logger
           
protected  int m_iMaxThr
           
protected  int m_iUpperThreadLimit
           
static java.lang.String PARM_MAX_THREADS
           
protected  java.util.concurrent.ExecutorService pipelineExecutorPool
           
 
Constructor Summary
protected AbstractListener(EsbListenerController controller, ConfigTree configTree)
          Constructor configuring this listener instance and thread pool executing the action processing pipeline.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Field Detail

logger

protected org.apache.log4j.Logger logger

_config

protected ConfigTree _config

_controller

protected EsbListenerController _controller

m_iMaxThr

protected int m_iMaxThr

m_iUpperThreadLimit

protected int m_iUpperThreadLimit

PARM_MAX_THREADS

public static final java.lang.String PARM_MAX_THREADS
See Also:
Constant Field Values

pipelineExecutorPool

protected java.util.concurrent.ExecutorService pipelineExecutorPool
Constructor Detail

AbstractListener

protected AbstractListener(EsbListenerController controller,
                           ConfigTree configTree)
Constructor configuring this listener instance and thread pool executing the action processing pipeline.

Parameters:
controller - the EsbListenerController instance controlling this listener
configTree - the configuration for this listener instance