public class CachingMessageProcessor
extends org.mule.runtime.core.api.processor.AbstractMessageProcessorOwner
implements org.mule.runtime.core.api.processor.Processor, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.api.lifecycle.Stoppable
CoreEvent using a CachingStrategy.
Provides a configurable filter to check whether or not a given request has to go through the cache or not. All requests are
processed using the caching strategy by default.locator, logger, muleContext| Constructor and Description |
|---|
CachingMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<org.mule.runtime.core.api.event.CoreEvent> |
apply(org.reactivestreams.Publisher<org.mule.runtime.core.api.event.CoreEvent> publisher) |
protected CachingStrategy |
createDefaultCachingStrategy() |
CachingStrategy |
getCachingStrategy() |
String |
getFilterExpression() |
protected List<org.mule.runtime.core.api.processor.Processor> |
getOwnedMessageProcessors() |
void |
initialise() |
org.mule.runtime.core.api.event.CoreEvent |
process(org.mule.runtime.core.api.event.CoreEvent event) |
void |
setCachingStrategy(CachingStrategy cachingStrategy) |
void |
setFilterExpression(String filterExpression) |
void |
setMessageProcessors(List<org.mule.runtime.core.api.processor.Processor> messageProcessors) |
void |
start() |
void |
stop() |
getOwnedObjectsdispose, getMuleContext, setMuleContextgetAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerName, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class org.mule.runtime.core.api.processor.AbstractMuleObjectOwner<org.mule.runtime.core.api.processor.Processor>org.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startablestart in class org.mule.runtime.core.api.processor.AbstractMuleObjectOwner<org.mule.runtime.core.api.processor.Processor>org.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppablestop in class org.mule.runtime.core.api.processor.AbstractMuleObjectOwner<org.mule.runtime.core.api.processor.Processor>org.mule.runtime.api.exception.MuleExceptionprotected CachingStrategy createDefaultCachingStrategy()
public org.mule.runtime.core.api.event.CoreEvent process(org.mule.runtime.core.api.event.CoreEvent event)
throws org.mule.runtime.api.exception.MuleException
process in interface org.mule.runtime.core.api.processor.Processororg.mule.runtime.api.exception.MuleExceptionpublic org.reactivestreams.Publisher<org.mule.runtime.core.api.event.CoreEvent> apply(org.reactivestreams.Publisher<org.mule.runtime.core.api.event.CoreEvent> publisher)
public void setMessageProcessors(List<org.mule.runtime.core.api.processor.Processor> messageProcessors) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionprotected List<org.mule.runtime.core.api.processor.Processor> getOwnedMessageProcessors()
getOwnedMessageProcessors in class org.mule.runtime.core.api.processor.AbstractMessageProcessorOwnerpublic CachingStrategy getCachingStrategy()
public void setCachingStrategy(CachingStrategy cachingStrategy)
public String getFilterExpression()
public void setFilterExpression(String filterExpression)
filterExpression - The expression used to filter which messages should be processed using the caching strategyCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.