public class

ReceiveMessagesMessageSource

extends Object
implements Runnable SourceCallback FlowConstructAware MuleContextAware Initialisable Startable Stoppable MessageSource
java.lang.Object
   ↳ org.mule.modules.amazon.sources.ReceiveMessagesMessageSource

Class Overview

ReceiveMessagesMessageSource wraps receiveMessages(org.mule.api.callback.SourceCallback, java.lang.Integer, java.lang.Boolean, java.lang.Long, java.lang.Integer) method in SQSConnector as a message source capable of generating Mule events. The POJO's method is invoked in its own thread.

Summary

[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.lifecycle.Startable
From interface org.mule.api.lifecycle.Stoppable
Fields
private Integer _numberOfMessagesType
private Long _pollPeriodType
private Boolean _preserveMessagesType
private String _queueNameType
private Integer _visibilityTimeoutType
private FlowConstruct flowConstruct Flow construct
private MessageProcessor messageProcessor Message processor that will get called for processing incoming events
private Object moduleObject Module object
private MuleContext muleContext Mule Context
private Object numberOfMessages
private Object pollPeriod
private Object preserveMessages
private Object queueName
private Thread thread Thread under which this message source will execute
private Object visibilityTimeout
Public Constructors
ReceiveMessagesMessageSource()
Public Methods
void initialise()
Obtains the expression manager from the Mule context and initialises the connector.
Object process(Object message, Map<String, Object> properties)
Implements SourceCallback#process(org.mule.api.MuleEvent).
Object process()
Implements process().
Object process(Object message)
Implements SourceCallback#process(org.mule.api.MuleEvent).
void run()
Implementation run() that will invoke the method on the pojo that this message source wraps.
void setFlowConstruct(FlowConstruct flowConstruct)
Sets flow construct
void setListener(MessageProcessor listener)
Sets the message processor that will "listen" the events generated by this message source
void setModuleObject(Object moduleObject)
Sets the instance of the object under which the processor will execute
void setMuleContext(MuleContext context)
Set the Mule context
void setNumberOfMessages(Object value)
Sets numberOfMessages
void setPollPeriod(Object value)
Sets pollPeriod
void setPreserveMessages(Object value)
Sets preserveMessages
void setQueueName(Object value)
Sets queueName
void setVisibilityTimeout(Object value)
Sets visibilityTimeout
void start()
Method to be called when Mule instance gets started.
void stop()
Method to be called when Mule instance gets stopped.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Runnable
From interface org.mule.api.callback.SourceCallback
From interface org.mule.api.construct.FlowConstructAware
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.lifecycle.Startable
From interface org.mule.api.lifecycle.Stoppable
From interface org.mule.api.source.MessageSource

Fields

private Integer _numberOfMessagesType

private Long _pollPeriodType

private Boolean _preserveMessagesType

private String _queueNameType

private Integer _visibilityTimeoutType

private FlowConstruct flowConstruct

Flow construct

private MessageProcessor messageProcessor

Message processor that will get called for processing incoming events

private Object moduleObject

Module object

private MuleContext muleContext

Mule Context

private Object numberOfMessages

private Object pollPeriod

private Object preserveMessages

private Object queueName

private Thread thread

Thread under which this message source will execute

private Object visibilityTimeout

Public Constructors

public ReceiveMessagesMessageSource ()

Public Methods

public void initialise ()

Obtains the expression manager from the Mule context and initialises the connector. If a target object has not been set already it will search the Mule registry for a default one.

Throws
InitialisationException

public Object process (Object message, Map<String, Object> properties)

Implements SourceCallback#process(org.mule.api.MuleEvent). This message source will be passed on to the actual pojo's method as a callback mechanism.

Parameters
message
properties
Throws
Exception

public Object process ()

Implements process(). This message source will be passed on to the actual pojo's method as a callback mechanism.

Throws
Exception

public Object process (Object message)

Implements SourceCallback#process(org.mule.api.MuleEvent). This message source will be passed on to the actual pojo's method as a callback mechanism.

Parameters
message
Throws
Exception

public void run ()

Implementation run() that will invoke the method on the pojo that this message source wraps.

public void setFlowConstruct (FlowConstruct flowConstruct)

Sets flow construct

Parameters
flowConstruct Flow construct to set

public void setListener (MessageProcessor listener)

Sets the message processor that will "listen" the events generated by this message source

Parameters
listener Message processor

public void setModuleObject (Object moduleObject)

Sets the instance of the object under which the processor will execute

Parameters
moduleObject Instace of the module

public void setMuleContext (MuleContext context)

Set the Mule context

Parameters
context Mule context to set

public void setNumberOfMessages (Object value)

Sets numberOfMessages

Parameters
value Value to set

public void setPollPeriod (Object value)

Sets pollPeriod

Parameters
value Value to set

public void setPreserveMessages (Object value)

Sets preserveMessages

Parameters
value Value to set

public void setQueueName (Object value)

Sets queueName

Parameters
value Value to set

public void setVisibilityTimeout (Object value)

Sets visibilityTimeout

Parameters
value Value to set

public void start ()

Method to be called when Mule instance gets started.

Throws
MuleException

public void stop ()

Method to be called when Mule instance gets stopped.

Throws
MuleException