org.apache.camel.model
Class ToDefinition

java.lang.Object
  extended by org.apache.camel.model.OptionalIdentifiedDefinition
      extended by org.apache.camel.model.ProcessorDefinition<Type>
          extended by org.apache.camel.model.SendDefinition<ToDefinition>
              extended by org.apache.camel.model.ToDefinition
All Implemented Interfaces:
Block

public class ToDefinition
extends SendDefinition<ToDefinition>

Represents an XML <to/> element

Version:
$Revision: 17043 $

Field Summary
 
Fields inherited from class org.apache.camel.model.SendDefinition
endpoint, ref, uri
 
Fields inherited from class org.apache.camel.model.ProcessorDefinition
errorHandlerBuilder, errorHandlerRef, log
 
Constructor Summary
ToDefinition()
           
ToDefinition(Endpoint endpoint)
           
ToDefinition(Endpoint endpoint, ExchangePattern pattern)
           
ToDefinition(String uri)
           
ToDefinition(String uri, ExchangePattern pattern)
           
 
Method Summary
 Processor createProcessor(RouteContext routeContext)
           
 ToDefinition executorService(ExecutorService executorService)
          Setting the executor service for executing the async routing.
 ToDefinition executorServiceRef(String executorServiceRef)
          Setting the executor service for executing the async routing.
 ExecutorService getExecutorService()
           
 String getExecutorServiceRef()
           
 List<ProcessorDefinition> getOutputs()
           
 ExchangePattern getPattern()
           
 Integer getPoolSize()
           
 String getShortName()
          Returns a short name for this node which can be useful for ID generation or referring to related resources like images
 Boolean isAsync()
           
 ToDefinition poolSize(int poolSize)
          Setting the core pool size for the underlying ExecutorService.
 void setAsync(Boolean async)
           
 void setExecutorService(ExecutorService executorService)
           
 void setExecutorServiceRef(String executorServiceRef)
           
 void setPattern(ExchangePattern pattern)
          Sets the optional ExchangePattern used to invoke this endpoint
 void setPoolSize(Integer poolSize)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.model.SendDefinition
getEndpoint, getLabel, getRef, getUri, getUriOrRef, resolveEndpoint, setEndpoint, setRef, setUri
 
Methods inherited from class org.apache.camel.model.ProcessorDefinition
addInterceptStrategies, addInterceptStrategy, addOutput, addRoutes, aggregate, aggregate, aggregate, aggregate, aggregate, aop, bean, bean, bean, bean, beanRef, beanRef, choice, clearOutput, configureChild, convertBodyTo, convertBodyTo, createChannel, createCompositeProcessor, createErrorHandlerBuilder, createOutputsProcessor, createOutputsProcessor, delay, delay, delay, doTry, end, enrich, enrich, enrichRef, filter, filter, filter, filter, getErrorHandlerBuilder, getInterceptStrategies, getNodeFactory, getParent, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inOnly, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, inOut, isAbstract, loadBalance, loadBalance, log, log, log, loop, loop, loop, makeProcessor, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, pipeline, pipeline, pipeline, pipeline, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichRef, process, processRef, recipientList, recipientList, recipientList, removeFaultHeader, removeHeader, removeProperty, resequence, resequence, resequence, resequencer, rollback, rollback, routeId, routingSlip, routingSlip, sample, sample, setBody, setBody, setErrorHandlerBuilder, setExchangePattern, setFaultBody, setFaultHeader, setHeader, setHeader, setNodeFactory, setOutHeader, setOutHeader, setParent, setProperty, setProperty, sort, sort, sortBody, sortBody, split, split, split, stop, threads, threads, throttle, throwException, to, to, to, to, to, to, to, to, to, to, toAsync, toAsync, toAsync, toAsync, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, wireTap, wireTap, wireTap, wrapChannel, wrapInErrorHandler, wrapProcessor
 
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getDescription, getId, hasCustomIdAssigned, idOrCreate, setDescription, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToDefinition

public ToDefinition()

ToDefinition

public ToDefinition(String uri)

ToDefinition

public ToDefinition(Endpoint endpoint)

ToDefinition

public ToDefinition(String uri,
                    ExchangePattern pattern)

ToDefinition

public ToDefinition(Endpoint endpoint,
                    ExchangePattern pattern)
Method Detail

getOutputs

public List<ProcessorDefinition> getOutputs()
Overrides:
getOutputs in class SendDefinition<ToDefinition>

createProcessor

public Processor createProcessor(RouteContext routeContext)
                          throws Exception
Overrides:
createProcessor in class SendDefinition<ToDefinition>
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object

getShortName

public String getShortName()
Description copied from class: OptionalIdentifiedDefinition
Returns a short name for this node which can be useful for ID generation or referring to related resources like images

Overrides:
getShortName in class OptionalIdentifiedDefinition
Returns:
defaults to "node" but derived nodes should overload this to provide a unique name

getPattern

public ExchangePattern getPattern()
Overrides:
getPattern in class SendDefinition<ToDefinition>

isAsync

public Boolean isAsync()

setAsync

public void setAsync(Boolean async)

getPoolSize

public Integer getPoolSize()

setPoolSize

public void setPoolSize(Integer poolSize)

getExecutorService

public ExecutorService getExecutorService()

setExecutorService

public void setExecutorService(ExecutorService executorService)

getExecutorServiceRef

public String getExecutorServiceRef()

setExecutorServiceRef

public void setExecutorServiceRef(String executorServiceRef)

setPattern

public void setPattern(ExchangePattern pattern)
Sets the optional ExchangePattern used to invoke this endpoint


executorService

public ToDefinition executorService(ExecutorService executorService)
Setting the executor service for executing the async routing.

Returns:
the builder

executorServiceRef

public ToDefinition executorServiceRef(String executorServiceRef)
Setting the executor service for executing the async routing.

Returns:
the builder

poolSize

public ToDefinition poolSize(int poolSize)
Setting the core pool size for the underlying ExecutorService.

Returns:
the builder


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.