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.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
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected int
protected org.apache.camel.CamelContext
protected org.apache.camel.spi.SendDynamicAware
protected final org.apache.camel.Expression
protected String
protected boolean
protected org.apache.camel.ExchangePattern
protected org.apache.camel.spi.ProducerCache
protected String
protected String
protected final String
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.camel.Exchange
configureExchange
(org.apache.camel.Exchange exchange, org.apache.camel.ExchangePattern pattern, org.apache.camel.Endpoint endpoint) protected void
doInit()
protected void
doStart()
protected void
doStop()
int
org.apache.camel.CamelContext
org.apache.camel.spi.SendDynamicAware
org.apache.camel.spi.EndpointUtilizationStatistics
protected static org.apache.camel.Endpoint
getExistingEndpoint
(org.apache.camel.Exchange exchange, Object recipient) org.apache.camel.Expression
getId()
org.apache.camel.ExchangePattern
getUri()
boolean
boolean
boolean
protected static Object
prepareRecipient
(org.apache.camel.Exchange exchange, Object recipient) boolean
process
(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) protected static org.apache.camel.Endpoint
resolveEndpoint
(org.apache.camel.Exchange exchange, Object recipient, boolean prototype) protected static String
resolveScheme
(org.apache.camel.Exchange exchange, String uri) protected static String
resolveUri
(org.apache.camel.Exchange exchange, Object recipient) void
setAllowOptimisedComponents
(boolean allowOptimisedComponents) void
setAutoStartupComponents
(boolean autoStartupComponents) void
setCacheSize
(int cacheSize) void
setCamelContext
(org.apache.camel.CamelContext camelContext) void
void
setIgnoreInvalidEndpoint
(boolean ignoreInvalidEndpoint) void
setPattern
(org.apache.camel.ExchangePattern pattern) void
setRouteId
(String routeId) toString()
Methods inherited from class org.apache.camel.support.AsyncProcessorSupport
process, processAsync
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.spi.IdAware
setGeneratedId
Methods inherited from interface org.apache.camel.Service
build, close, init, start, stop
Methods inherited from interface org.apache.camel.ShutdownableService
shutdown
Methods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
Methods 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 -
pattern
protected org.apache.camel.ExchangePattern pattern -
producerCache
protected org.apache.camel.spi.ProducerCache producerCache -
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:
getId
in interfaceorg.apache.camel.spi.HasId
-
setId
- Specified by:
setId
in interfaceorg.apache.camel.spi.IdAware
-
getRouteId
- Specified by:
getRouteId
in interfaceorg.apache.camel.spi.RouteIdAware
-
setRouteId
- Specified by:
setRouteId
in interfaceorg.apache.camel.spi.RouteIdAware
-
process
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) - Specified by:
process
in 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:
doInit
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStart
- Overrides:
doStart
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStop
- Overrides:
doStop
in 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:
getCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContext
in 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) -
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)
-