public interface Callable extends EventListener
Callable is used to provide a Service with an interface that supports event calls. Components do not have to
implement this interface, though the onCall method provides an example lifecycle method that is executed when an
event is received for the implementing service.| Modifier and Type | Method and Description |
|---|---|
Object |
onCall(MuleEventContext eventContext)
Passes the event to the listener
|
Object onCall(MuleEventContext eventContext) throws Exception
eventContext - the context of the current event being processLifecycleAdapter for the service receives this object it
will first see if the Object is an Message if not and the Object is not null a new message will be
created using the returned object as the payload. This new event will then get published via the configured outbound
router if one has been configured for the component.Exception - if the event fails to process properly. If exceptions aren't handled by the implementation they will be
handled by the exceptionListener associated with the serviceCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.