|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedType<Type>
org.apache.camel.model.ProcessorDefinition<ProcessorDefinition>
org.apache.camel.model.OnCompletionDefinition
public class OnCompletionDefinition
Represents an XML <onCompletion/> element
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
nodeCounters |
| Constructor Summary | |
|---|---|
OnCompletionDefinition()
|
|
| Method Summary | |
|---|---|
Processor |
createProcessor(RouteContext routeContext)
|
ProcessorDefinition<? extends ProcessorDefinition> |
end()
Ends the current block |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node |
Boolean |
getOnCompleteOnly()
|
Boolean |
getOnFailureOnly()
|
WhenDefinition |
getOnWhen()
|
List<ProcessorDefinition> |
getOutputs()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
OnCompletionDefinition |
onCompleteOnly()
Will only synchronize when the Exchange completed succesfully (no errors). |
OnCompletionDefinition |
onFailureOnly()
Will only synchronize when the Exchange ended with failure (exception or FAULT message). |
ExpressionClause<OnCompletionDefinition> |
onWhen()
Creates an expression to configure an additional predicate that should be true before the onCompletion is triggered. |
OnCompletionDefinition |
onWhen(Predicate predicate)
Sets an additional predicate that should be true before the onCompletion is triggered. |
void |
removeAllOnCompletionDefinition(ProcessorDefinition definition)
Removes all existing OnCompletionDefinition from the defintion. |
void |
setOnCompleteOnly(Boolean onCompleteOnly)
|
void |
setOnFailureOnly(Boolean onFailureOnly)
|
void |
setOnWhen(WhenDefinition onWhen)
|
void |
setOutputs(List<ProcessorDefinition> outputs)
|
String |
toString()
|
| Methods inherited from class org.apache.camel.model.OptionalIdentifiedType |
|---|
createId, description, getDescription, getId, getNodeCounter, hasCustomIdAssigned, idOrCreate, setDescription, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OnCompletionDefinition()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic String getShortName()
OptionalIdentifiedType
getShortName in class OptionalIdentifiedType<ProcessorDefinition>public String getLabel()
ProcessorDefinition
getLabel in class ProcessorDefinition<ProcessorDefinition>
public Processor createProcessor(RouteContext routeContext)
throws Exception
createProcessor in class ProcessorDefinition<ProcessorDefinition>Exceptionpublic void removeAllOnCompletionDefinition(ProcessorDefinition definition)
OnCompletionDefinition from the defintion.
This is used to let route scoped onCompletion overrule any global onCompletion.
Hence we remove all existing as they are global.
definition - the parent defintion that is the routepublic ProcessorDefinition<? extends ProcessorDefinition> end()
ProcessorDefinition
end in class ProcessorDefinition<ProcessorDefinition>public OnCompletionDefinition onCompleteOnly()
Exchange completed succesfully (no errors).
public OnCompletionDefinition onFailureOnly()
Exchange ended with failure (exception or FAULT message).
public OnCompletionDefinition onWhen(Predicate predicate)
predicate - predicate that determines true or false
public ExpressionClause<OnCompletionDefinition> onWhen()
public List<ProcessorDefinition> getOutputs()
getOutputs in class ProcessorDefinition<ProcessorDefinition>public void setOutputs(List<ProcessorDefinition> outputs)
public Boolean getOnCompleteOnly()
public void setOnCompleteOnly(Boolean onCompleteOnly)
public Boolean getOnFailureOnly()
public void setOnFailureOnly(Boolean onFailureOnly)
public WhenDefinition getOnWhen()
public void setOnWhen(WhenDefinition onWhen)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||