org.mule.api.callback
Interface SourceCallback

All Known Implementing Classes:
AbstractListeningMessageProcessor

public interface SourceCallback

Callback interface used by message source annotated methods to dispatch messages.


Method Summary
 Object process()
          Dispatch the current event to the flow
 Object process(Object payload)
          Dispatch message to the flow
 Object process(Object payload, Map<String,Object> properties)
          Dispatch message to the flow with properties
 MuleEvent processEvent(MuleEvent event)
          Dispatch the current event to the flow
 

Method Detail

process

Object process()
               throws Exception
Dispatch the current event to the flow

Returns:
The response of the flow
Throws:
Exception

process

Object process(Object payload)
               throws Exception
Dispatch message to the flow

Parameters:
payload - The payload of the message
Returns:
The response of the flow
Throws:
Exception

process

Object process(Object payload,
               Map<String,Object> properties)
               throws Exception
Dispatch message to the flow with properties

Parameters:
payload - The payload of the message
properties - Properties to be attached with inbound scope
Returns:
The response of the flow
Throws:
Exception

processEvent

MuleEvent processEvent(MuleEvent event)
                       throws MuleException
Dispatch the current event to the flow

Returns:
The response of the flow
Throws:
MuleException


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.