Package org.apache.camel.processor
Class RecipientList
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.AsyncProcessorSupport
org.apache.camel.processor.RecipientList
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.AsyncProcessor
,org.apache.camel.Processor
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.ErrorHandlerAware
,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 RecipientList
extends org.apache.camel.support.AsyncProcessorSupport
implements org.apache.camel.spi.IdAware, org.apache.camel.spi.RouteIdAware, org.apache.camel.spi.ErrorHandlerAware
Implements a dynamic Recipient List pattern where the list
of actual endpoints to send a message exchange to are dependent on some dynamic expression.
-
Field Summary
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
ConstructorDescriptionRecipientList
(org.apache.camel.CamelContext camelContext) RecipientList
(org.apache.camel.CamelContext camelContext, String delimiter) RecipientList
(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression) RecipientList
(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression, String delimiter) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
doStart()
protected void
doStop()
org.apache.camel.AggregationStrategy
int
org.apache.camel.spi.EndpointUtilizationStatistics
org.apache.camel.Processor
org.apache.camel.Expression
getId()
org.apache.camel.Processor
long
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
org.apache.camel.Processor
newPipeline
(org.apache.camel.CamelContext camelContext, Collection<org.apache.camel.Processor> processors) boolean
process
(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) void
setAggregationStrategy
(org.apache.camel.AggregationStrategy aggregationStrategy) void
setCacheSize
(int cacheSize) void
setErrorHandler
(org.apache.camel.Processor errorHandler) void
setExecutorService
(ExecutorService executorService) void
void
setIgnoreInvalidEndpoints
(boolean ignoreInvalidEndpoints) void
setOnPrepare
(org.apache.camel.Processor onPrepare) void
setParallelAggregate
(boolean parallelAggregate) void
setParallelProcessing
(boolean parallelProcessing) void
setRouteId
(String routeId) void
setShareUnitOfWork
(boolean shareUnitOfWork) void
setShutdownExecutorService
(boolean shutdownExecutorService) void
setStopOnException
(boolean stopOnException) void
setStreaming
(boolean streaming) void
setSynchronous
(boolean synchronous) void
setTimeout
(long timeout) 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, doInit, doLifecycleChange, doResume, 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
-
Constructor Details
-
RecipientList
public RecipientList(org.apache.camel.CamelContext camelContext) -
RecipientList
-
RecipientList
public RecipientList(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression) -
RecipientList
public RecipientList(org.apache.camel.CamelContext camelContext, org.apache.camel.Expression expression, String delimiter)
-
-
Method Details
-
newPipeline
public org.apache.camel.Processor newPipeline(org.apache.camel.CamelContext camelContext, Collection<org.apache.camel.Processor> processors) -
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
-
setErrorHandler
public void setErrorHandler(org.apache.camel.Processor errorHandler) - Specified by:
setErrorHandler
in interfaceorg.apache.camel.spi.ErrorHandlerAware
-
getErrorHandler
public org.apache.camel.Processor getErrorHandler()- Specified by:
getErrorHandler
in interfaceorg.apache.camel.spi.ErrorHandlerAware
-
process
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback) - Specified by:
process
in interfaceorg.apache.camel.AsyncProcessor
-
getEndpointUtilizationStatistics
public org.apache.camel.spi.EndpointUtilizationStatistics getEndpointUtilizationStatistics() -
doStart
- Overrides:
doStart
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doStop
- Overrides:
doStop
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
doShutdown
- Overrides:
doShutdown
in classorg.apache.camel.support.service.BaseService
- Throws:
Exception
-
getExpression
public org.apache.camel.Expression getExpression() -
getDelimiter
-
isStreaming
public boolean isStreaming() -
setStreaming
public void setStreaming(boolean streaming) -
isIgnoreInvalidEndpoints
public boolean isIgnoreInvalidEndpoints() -
setIgnoreInvalidEndpoints
public void setIgnoreInvalidEndpoints(boolean ignoreInvalidEndpoints) -
isParallelProcessing
public boolean isParallelProcessing() -
setParallelProcessing
public void setParallelProcessing(boolean parallelProcessing) -
isSynchronous
public boolean isSynchronous() -
setSynchronous
public void setSynchronous(boolean synchronous) -
isParallelAggregate
public boolean isParallelAggregate() -
setParallelAggregate
public void setParallelAggregate(boolean parallelAggregate) -
isStopOnException
public boolean isStopOnException() -
setStopOnException
public void setStopOnException(boolean stopOnException) -
getExecutorService
-
setExecutorService
-
isShutdownExecutorService
public boolean isShutdownExecutorService() -
setShutdownExecutorService
public void setShutdownExecutorService(boolean shutdownExecutorService) -
getAggregationStrategy
public org.apache.camel.AggregationStrategy getAggregationStrategy() -
setAggregationStrategy
public void setAggregationStrategy(org.apache.camel.AggregationStrategy aggregationStrategy) -
getTimeout
public long getTimeout() -
setTimeout
public void setTimeout(long timeout) -
getOnPrepare
public org.apache.camel.Processor getOnPrepare() -
setOnPrepare
public void setOnPrepare(org.apache.camel.Processor onPrepare) -
getCacheSize
public int getCacheSize() -
setCacheSize
public void setCacheSize(int cacheSize)
-