public interface NonBlockingMessageSource extends MessageSource
ReplyToHandler
allowing for a response or error to be returned asynchronously by a different thread freeing up the request thread.
Implementations must support both blocking and non-blocking and therefore need to test the response MuleEvent
returned when invoking MessageProcessor.process(org.mule.api.MuleEvent)
on the listener.
If the event returned is an instance of NonBlockingVoidMuleEvent
then the MessageSource
should wait for the
ReplyToHandler
to be invoked before sending a response, otherwise the response should be
sent immediatly.
Note: If AsyncResponseFlowProcessingPhase
is used then non-blocking will be supported, it is still
necessary that the MessageSource implements this interface though.setListener
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.