|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.model.OptionalIdentifiedDefinition<Type> org.apache.camel.model.ProcessorDefinition<ExpressionNode> org.apache.camel.model.ExpressionNode org.apache.camel.model.DelayDefinition
public class DelayDefinition
Represents an XML <delay/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
inheritErrorHandler, log |
Constructor Summary | |
---|---|
DelayDefinition()
|
|
DelayDefinition(Expression delay)
|
Method Summary | |
---|---|
DelayDefinition |
asyncDelayed()
Enables asynchronous delay which means the thread will noy block while delaying. |
DelayDefinition |
callerRunsWhenRejected(boolean callerRunsWhenRejected)
Whether or not the caller should run the task when it was rejected by the thread pool. |
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor based on the definition model. |
DelayDefinition |
delayTime(Long delay)
Sets the delay time in millis to delay |
DelayDefinition |
executorService(ExecutorService executorService)
Setting the executor service for executing |
DelayDefinition |
executorServiceRef(String executorServiceRef)
Setting the executor service for executing |
Boolean |
getAsyncDelayed()
|
Boolean |
getCallerRunsWhenRejected()
|
ExecutorService |
getExecutorService()
Gets the executor service |
String |
getExecutorServiceRef()
Gets the reference to lookup in the Registry for the executor service to be used. |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
boolean |
isAsyncDelayed()
|
void |
setAsyncDelayed(Boolean asyncDelayed)
|
void |
setCallerRunsWhenRejected(Boolean callerRunsWhenRejected)
|
void |
setExecutorService(ExecutorService executorService)
Sets the executor service to be used. |
void |
setExecutorServiceRef(String executorServiceRef)
Sets a reference to lookup in the Registry for the executor service to be used. |
String |
toString()
|
Methods inherited from class org.apache.camel.model.ExpressionNode |
---|
configureChild, createFilterProcessor, createPredicate, getExpression, getOutputs, isOutputSupported, preCreateProcessor, setExpression, setOutputs |
Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition |
---|
description, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setDescription, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DelayDefinition()
public DelayDefinition(Expression delay)
Method Detail |
---|
public String getLabel()
ProcessorDefinition
getLabel
in class ExpressionNode
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in interface NamedNode
getShortName
in class ExpressionNode
public String toString()
toString
in class Object
public Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinition
createProcessor
in class ProcessorDefinition<ExpressionNode>
Exception
public DelayDefinition delayTime(Long delay)
delay
- delay time in millis
public DelayDefinition callerRunsWhenRejected(boolean callerRunsWhenRejected)
callerRunsWhenRejected
- whether or not the caller should run
public DelayDefinition asyncDelayed()
public DelayDefinition executorService(ExecutorService executorService)
ExecutorServiceAwareDefinition
executorService
in interface ExecutorServiceAwareDefinition<DelayDefinition>
executorService
- the executor service
public DelayDefinition executorServiceRef(String executorServiceRef)
ExecutorServiceAwareDefinition
executorServiceRef
in interface ExecutorServiceAwareDefinition<DelayDefinition>
executorServiceRef
- reference for a ExecutorService
to lookup in the Registry
public Boolean getAsyncDelayed()
public void setAsyncDelayed(Boolean asyncDelayed)
public boolean isAsyncDelayed()
public Boolean getCallerRunsWhenRejected()
public void setCallerRunsWhenRejected(Boolean callerRunsWhenRejected)
public ExecutorService getExecutorService()
ExecutorServiceAware
getExecutorService
in interface ExecutorServiceAware
public void setExecutorService(ExecutorService executorService)
ExecutorServiceAware
setExecutorService
in interface ExecutorServiceAware
executorService
- the executorpublic String getExecutorServiceRef()
ExecutorServiceAware
Registry
for the executor service to be used.
getExecutorServiceRef
in interface ExecutorServiceAware
public void setExecutorServiceRef(String executorServiceRef)
ExecutorServiceAware
Registry
for the executor service to be used.
setExecutorServiceRef
in interface ExecutorServiceAware
executorServiceRef
- reference for the executor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |