public class

SubscribeTopicMessageSource

extends Object
implements SourceCallback FlowConstructAware MuleContextAware Initialisable Startable Stoppable ClusterizableMessageSource
java.lang.Object
   ↳ org.mule.modules.salesforce.sources.SubscribeTopicMessageSource

Class Overview

SubscribeTopicMessageSource wraps subscribeTopic(java.lang.String, org.mule.api.callback.SourceCallback) method in SalesforceModule 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 String _passwordType
private String _securityTokenType
private String _topicType
private String _usernameType
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 password
private Object securityToken
private StopSourceCallback stopSourceCallback
private Object topic
private Object username
Public Constructors
SubscribeTopicMessageSource()
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 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 setPassword(Object value)
Sets password
void setSecurityToken(Object value)
Sets securityToken
void setTopic(Object value)
Sets topic
void setUsername(Object value)
Sets username
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 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 String _passwordType

private String _securityTokenType

private String _topicType

private String _usernameType

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 password

private Object securityToken

private StopSourceCallback stopSourceCallback

private Object topic

private Object username

Public Constructors

public SubscribeTopicMessageSource ()

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 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 setPassword (Object value)

Sets password

Parameters
value Value to set

public void setSecurityToken (Object value)

Sets securityToken

Parameters
value Value to set

public void setTopic (Object value)

Sets topic

Parameters
value Value to set

public void setUsername (Object value)

Sets username

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