public interface CachingStrategy
Event using a cache.| Modifier and Type | Method and Description |
|---|---|
Event |
process(Event request,
Processor messageProcessor)
Processes a
Event using a caching schema. |
default ReactiveProcessor |
transformProcessor(Processor processor)
Obtain the publisher function for caching strategy given a processor
|
Event process(Event request, Processor messageProcessor) throws org.mule.runtime.api.exception.MuleException
Event using a caching schema. Uses a message processor to process the request when it is not found in the
cache or when it must be processed without using the cache.
Different calls to this method using the same request does not implies that the same instance will be returned. Each
implementation could choose to create new instances every time.request - the event to processmessageProcessor - the message processor that will be executed when the response for the event is not in the cache.org.mule.runtime.api.exception.MuleExceptiondefault ReactiveProcessor transformProcessor(Processor processor)
processor - the processor that will be executed when the response for the event is not in the cache.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.