Package org.apache.camel.processor
Class SendDynamicProcessor
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.AsyncProcessorSupport
org.apache.camel.processor.SendDynamicProcessor
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.AsyncProcessor,org.apache.camel.CamelContextAware,org.apache.camel.Processor,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.HasId,org.apache.camel.spi.IdAware,org.apache.camel.spi.RouteIdAware,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
public class SendDynamicProcessor
extends org.apache.camel.support.AsyncProcessorSupport
implements org.apache.camel.spi.IdAware, org.apache.camel.spi.RouteIdAware, org.apache.camel.CamelContextAware
Processor for forwarding exchanges to a dynamic endpoint destination.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected intprotected org.apache.camel.CamelContextprotected org.apache.camel.spi.SendDynamicAwareprotected final org.apache.camel.Expressionprotected org.apache.camel.spi.HeadersMapFactoryprotected Stringprotected booleanprotected org.apache.camel.ExchangePatternprotected org.apache.camel.spi.ProducerCacheprotected Stringprotected Stringprotected final Stringprotected Stringprotected StringFields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.camel.ExchangeconfigureExchange(org.apache.camel.Exchange exchange, org.apache.camel.ExchangePattern pattern, org.apache.camel.Endpoint endpoint) protected voiddoInit()protected voiddoStart()protected voiddoStop()intorg.apache.camel.CamelContextorg.apache.camel.spi.SendDynamicAwareorg.apache.camel.spi.EndpointUtilizationStatisticsprotected static org.apache.camel.EndpointgetExistingEndpoint(org.apache.camel.Exchange exchange, Object recipient) org.apache.camel.ExpressiongetId()org.apache.camel.ExchangePatterngetUri()booleanbooleanbooleanprotected static ObjectprepareRecipient(org.apache.camel.Exchange exchange, Object recipient) booleanprocess(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) protected static org.apache.camel.EndpointresolveEndpoint(org.apache.camel.Exchange exchange, Object recipient, boolean prototype) protected static StringresolveScheme(org.apache.camel.Exchange exchange, String uri) protected static StringresolveUri(org.apache.camel.Exchange exchange, Object recipient) voidsetAllowOptimisedComponents(boolean allowOptimisedComponents) voidsetAutoStartupComponents(boolean autoStartupComponents) voidsetCacheSize(int cacheSize) voidsetCamelContext(org.apache.camel.CamelContext camelContext) voidvoidsetIgnoreInvalidEndpoint(boolean ignoreInvalidEndpoint) voidsetPattern(org.apache.camel.ExchangePattern pattern) voidsetRouteId(String routeId) voidsetVariableReceive(String variableReceive) voidsetVariableSend(String variableSend) toString()Methods inherited from class org.apache.camel.support.AsyncProcessorSupport
process, processAsyncMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.spi.IdAware
setGeneratedIdMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Field Details
-
dynamicAware
protected org.apache.camel.spi.SendDynamicAware dynamicAware -
scheme
-
camelContext
protected org.apache.camel.CamelContext camelContext -
uri
-
expression
protected final org.apache.camel.Expression expression -
variableSend
-
variableReceive
-
pattern
protected org.apache.camel.ExchangePattern pattern -
producerCache
protected org.apache.camel.spi.ProducerCache producerCache -
headersMapFactory
protected org.apache.camel.spi.HeadersMapFactory headersMapFactory -
id
-
routeId
-
ignoreInvalidEndpoint
protected boolean ignoreInvalidEndpoint -
cacheSize
protected int cacheSize -
allowOptimisedComponents
protected boolean allowOptimisedComponents -
autoStartupComponents
protected boolean autoStartupComponents
-
-
Constructor Details
-
SendDynamicProcessor
-
-
Method Details
-
toString
-
getId
- Specified by:
getIdin interfaceorg.apache.camel.spi.HasId
-
setId
- Specified by:
setIdin interfaceorg.apache.camel.spi.IdAware
-
getRouteId
- Specified by:
getRouteIdin interfaceorg.apache.camel.spi.RouteIdAware
-
setRouteId
- Specified by:
setRouteIdin interfaceorg.apache.camel.spi.RouteIdAware
-
process
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) - Specified by:
processin interfaceorg.apache.camel.AsyncProcessor
-
resolveUri
protected static String resolveUri(org.apache.camel.Exchange exchange, Object recipient) throws org.apache.camel.NoTypeConversionAvailableException - Throws:
org.apache.camel.NoTypeConversionAvailableException
-
resolveScheme
-
prepareRecipient
protected static Object prepareRecipient(org.apache.camel.Exchange exchange, Object recipient) throws org.apache.camel.NoTypeConversionAvailableException - Throws:
org.apache.camel.NoTypeConversionAvailableException
-
getExistingEndpoint
protected static org.apache.camel.Endpoint getExistingEndpoint(org.apache.camel.Exchange exchange, Object recipient) -
resolveEndpoint
protected static org.apache.camel.Endpoint resolveEndpoint(org.apache.camel.Exchange exchange, Object recipient, boolean prototype) -
configureExchange
protected org.apache.camel.Exchange configureExchange(org.apache.camel.Exchange exchange, org.apache.camel.ExchangePattern pattern, org.apache.camel.Endpoint endpoint) -
doInit
- Overrides:
doInitin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-
getEndpointUtilizationStatistics
public org.apache.camel.spi.EndpointUtilizationStatistics getEndpointUtilizationStatistics() -
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
getDynamicAware
public org.apache.camel.spi.SendDynamicAware getDynamicAware() -
getUri
-
getExpression
public org.apache.camel.Expression getExpression() -
getPattern
public org.apache.camel.ExchangePattern getPattern() -
setPattern
public void setPattern(org.apache.camel.ExchangePattern pattern) -
getVariableSend
-
setVariableSend
-
getVariableReceive
-
setVariableReceive
-
isIgnoreInvalidEndpoint
public boolean isIgnoreInvalidEndpoint() -
setIgnoreInvalidEndpoint
public void setIgnoreInvalidEndpoint(boolean ignoreInvalidEndpoint) -
getCacheSize
public int getCacheSize() -
setCacheSize
public void setCacheSize(int cacheSize) -
isAllowOptimisedComponents
public boolean isAllowOptimisedComponents() -
setAllowOptimisedComponents
public void setAllowOptimisedComponents(boolean allowOptimisedComponents) -
isAutoStartupComponents
public boolean isAutoStartupComponents() -
setAutoStartupComponents
public void setAutoStartupComponents(boolean autoStartupComponents)
-