org.mule.model.seda
Class SedaModel
java.lang.Object
org.mule.model.AbstractModel
org.mule.model.seda.SedaModel
- All Implemented Interfaces:
- MuleContextAware, Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, Model, NameableObject, NamedObject
public class SedaModel
- extends AbstractModel
A mule service service model that uses SEDA principals to achieve high
throughput by Queuing events for components and processing them concurrently.
Methods inherited from class org.mule.model.AbstractModel |
dispose, getEntryPointResolverSet, getExceptionListener, getLifecycleAdapterFactory, getLifecycleState, getMuleContext, getName, setEntryPointResolvers, setEntryPointResolverSet, setExceptionListener, setLifecycleAdapterFactory, setMuleContext, setName, start, stop, toString |
poolingProfile
protected PoolingProfile poolingProfile
- the pooling configuration used when initialising the service described by
this descriptor.
queueProfile
protected QueueProfile queueProfile
- The queuing profile for events received for this service
SedaModel
public SedaModel()
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
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
- Specified by:
initialise
in interface Initialisable
- Overrides:
initialise
in class AbstractModel
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
getQueueTimeout
public int getQueueTimeout()
setQueueTimeout
public void setQueueTimeout(int queueTimeout)
getPoolingProfile
public PoolingProfile getPoolingProfile()
setPoolingProfile
public void setPoolingProfile(PoolingProfile poolingProfile)
getQueueProfile
public QueueProfile getQueueProfile()
setQueueProfile
public void setQueueProfile(QueueProfile queueProfile)
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.