public abstract class AbstractConnectorMessageProcessorProvider extends Object implements ConnectorOperationProvider, MuleContextAware, org.mule.runtime.api.lifecycle.Disposable
ConnectorOperationProvider| Modifier and Type | Field and Description |
|---|---|
protected static int |
CACHE_SIZE |
protected static int |
EXPIRATION_TIME_IN_MINUTES |
protected MuleContext |
muleContext |
| Constructor and Description |
|---|
AbstractConnectorMessageProcessorProvider()
Creates a new instance with a default message processors cache.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Processor |
buildMessageProcessor(RequestCacheKey cacheKey)
Builds a
Processor for the given cache key |
void |
dispose() |
Processor |
getMessageProcessor(String url,
OperationOptions operationOptions,
MessageExchangePattern exchangePattern)
A
Processor that contains the behaviour for the URL |
void |
setMuleContext(MuleContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsUrlprotected static final int CACHE_SIZE
protected static final int EXPIRATION_TIME_IN_MINUTES
protected MuleContext muleContext
public AbstractConnectorMessageProcessorProvider()
protected abstract Processor buildMessageProcessor(RequestCacheKey cacheKey) throws org.mule.runtime.api.exception.MuleException
Processor for the given cache keycacheKey - cache key defining the message processor to create. Non null.Processororg.mule.runtime.api.exception.MuleExceptionpublic Processor getMessageProcessor(String url, OperationOptions operationOptions, MessageExchangePattern exchangePattern) throws org.mule.runtime.api.exception.MuleException
ConnectorOperationProviderProcessor that contains the behaviour for the URLgetMessageProcessor in interface ConnectorOperationProviderurl - an URL for creating an operationoperationOptions - the operation optionsexchangePattern - exchange pattern to use to execute the request.Processor that fulfills the operationorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarecontext - the Mule node.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.