public class HttpCachingStrategy extends Object implements CachingStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_CALLBACK_PROPERTY_KEY |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
HttpCachingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
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. |
void |
setName(String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformProcessorpublic static final String HTTP_CALLBACK_PROPERTY_KEY
protected final org.slf4j.Logger logger
public 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
CachingStrategyCoreEvent 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.process in interface CachingStrategyrequest - 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.MuleExceptionpublic String getName()
public void setName(String name)
Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.