public interface CachingStrategy
CoreEvent using a cache.| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.core.api.event.CoreEvent |
process(org.mule.runtime.core.api.event.CoreEvent request,
org.mule.runtime.core.api.processor.Processor messageProcessor)
Processes a
CoreEvent using a caching schema. |
default org.mule.runtime.core.api.processor.ReactiveProcessor |
transformProcessor(org.mule.runtime.core.api.processor.Processor processor)
Obtain the publisher function for caching strategy given a processor
|
org.mule.runtime.core.api.event.CoreEvent process(org.mule.runtime.core.api.event.CoreEvent request,
org.mule.runtime.core.api.processor.Processor messageProcessor)
throws org.mule.runtime.api.exception.MuleException
CoreEvent 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 org.mule.runtime.core.api.processor.ReactiveProcessor transformProcessor(org.mule.runtime.core.api.processor.Processor processor)
processor - the processor that will be executed when the response for the event is not in the cache.Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.