org.mule.impl.model.seda
Class SedaModel

java.lang.Object
  extended byorg.mule.impl.model.AbstractModel
      extended byorg.mule.impl.model.seda.SedaModel
All Implemented Interfaces:
Disposable, Initialisable, Lifecycle, Startable, Stoppable, UMOModel
Direct Known Subclasses:
OptimisedSedaModel

public class SedaModel
extends AbstractModel

A mule component service model that uses Seda principals to achieve high throughput by Quing events for compoonents and processing them concurrently.

Version:
$Revision: 3798 $
Author:
Ross Mason

Field Summary
protected  boolean componentPerRequest
          Whether to create a new component for every request
 
Fields inherited from class org.mule.impl.model.AbstractModel
descriptors, logger
 
Constructor Summary
SedaModel()
           
 
Method Summary
protected  UMOComponent createComponent(UMODescriptor descriptor)
           
 int getQueueTimeout()
           
 String getType()
          Returns the model type name.
 boolean isComponentPerRequest()
           
 boolean isEnablePooling()
           
 void setComponentPerRequest(boolean componentPerRequest)
           
 void setEnablePooling(boolean enablePooling)
           
 void setQueueTimeout(int queueTimeout)
           
 
Methods inherited from class org.mule.impl.model.AbstractModel
dispose, getComponent, getComponentNames, getComponentSession, getDescriptor, getEntryPointResolver, getExceptionListener, getLifecycleAdapterFactory, getName, initialise, isComponentRegistered, pauseComponent, registerComponent, resumeComponent, setComponents, setEntryPointResolver, setExceptionListener, setLifecycleAdapterFactory, setName, start, startComponent, stop, stopComponent, unregisterComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentPerRequest

protected boolean componentPerRequest
Whether to create a new component for every request

Constructor Detail

SedaModel

public SedaModel()
Method Detail

getType

public String getType()
Returns the model type name. This is a friendly identifier that is used to look up the SPI class for the model

Returns:
the model type

createComponent

protected UMOComponent createComponent(UMODescriptor descriptor)
Specified by:
createComponent in class AbstractModel

getQueueTimeout

public int getQueueTimeout()

setQueueTimeout

public void setQueueTimeout(int queueTimeout)

isEnablePooling

public boolean isEnablePooling()

setEnablePooling

public void setEnablePooling(boolean enablePooling)

isComponentPerRequest

public boolean isComponentPerRequest()

setComponentPerRequest

public void setComponentPerRequest(boolean componentPerRequest)


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