public interface CachingStrategy
MuleEvent
using a cache.Modifier and Type | Method and Description |
---|---|
MuleEvent |
process(MuleEvent request,
MessageProcessor messageProcessor)
Processes a
MuleEvent using a caching schema. |
MuleEvent process(MuleEvent request, MessageProcessor messageProcessor) throws MuleException
MuleEvent
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.MuleException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.