org.mule.api.cache
Interface CachingStrategy
public interface CachingStrategy
Defines a way to process a MuleEvent
using a cache.
process
MuleEvent process(MuleEvent request,
MessageProcessor messageProcessor)
throws MuleException
- Processes a
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.
- Parameters:
request
- the event to processmessageProcessor
- the message processor that will be executed when
the response for the event is not in the cache.
- Returns:
- a response for the request that could be obtained using the
cache.
- Throws:
MuleException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.