|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.OptionalIdentifiedDefinition
org.apache.camel.model.ProcessorDefinition<ExpressionNode>
org.apache.camel.model.ExpressionNode
org.apache.camel.model.IdempotentConsumerDefinition
public class IdempotentConsumerDefinition
Represents an XML <idempotentConsumer/> element
Field Summary |
---|
Fields inherited from class org.apache.camel.model.ProcessorDefinition |
---|
errorHandlerBuilder, errorHandlerRef, inheritErrorHandler, log |
Constructor Summary | |
---|---|
IdempotentConsumerDefinition()
|
|
IdempotentConsumerDefinition(Expression messageIdExpression,
IdempotentRepository<?> idempotentRepository)
|
Method Summary | |
---|---|
Processor |
createProcessor(RouteContext routeContext)
Override this in definition class and implement logic to create the processor based on the definition model. |
IdempotentConsumerDefinition |
eager(boolean eager)
Sets whether to eagerly add the key to the idempotent repository or wait until the exchange is complete. |
ExpressionClause<IdempotentConsumerDefinition> |
expression()
Set the expression that IdempotentConsumerType will use |
IdempotentRepository<?> |
getMessageIdRepository()
|
String |
getMessageIdRepositoryRef()
|
String |
getShortName()
Returns a short name for this node which can be useful for ID generation or referring to related resources like images |
Boolean |
isEager()
|
IdempotentConsumerDefinition |
messageIdRepository(IdempotentRepository<?> idempotentRepository)
Sets the the message id repository for the IdempotentConsumerType |
IdempotentConsumerDefinition |
messageIdRepositoryRef(String messageIdRepositoryRef)
Sets the reference name of the message id repository |
protected IdempotentRepository<?> |
resolveMessageIdRepository(RouteContext routeContext)
Strategy method to resolve the IdempotentRepository to use |
void |
setEager(Boolean eager)
|
void |
setMessageIdRepository(IdempotentRepository<?> idempotentRepository)
|
void |
setMessageIdRepositoryRef(String messageIdRepositoryRef)
|
String |
toString()
|
Methods inherited from class org.apache.camel.model.ExpressionNode |
---|
createFilterProcessor, getExpression, getLabel, getOutputs, setExpression, setOutputs |
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 |
---|
public IdempotentConsumerDefinition()
public IdempotentConsumerDefinition(Expression messageIdExpression, IdempotentRepository<?> idempotentRepository)
Method Detail |
---|
public String toString()
toString
in class Object
public String getShortName()
OptionalIdentifiedDefinition
getShortName
in class ExpressionNode
public ExpressionClause<IdempotentConsumerDefinition> expression()
public IdempotentConsumerDefinition messageIdRepositoryRef(String messageIdRepositoryRef)
messageIdRepositoryRef
- the reference name of message id repository
public IdempotentConsumerDefinition messageIdRepository(IdempotentRepository<?> idempotentRepository)
idempotentRepository
- the repository instance of idempotent
public IdempotentConsumerDefinition eager(boolean eager)
eager
- true to add the key before processing, false to wait until
the exchange is complete.
public String getMessageIdRepositoryRef()
public void setMessageIdRepositoryRef(String messageIdRepositoryRef)
public IdempotentRepository<?> getMessageIdRepository()
public void setMessageIdRepository(IdempotentRepository<?> idempotentRepository)
public Boolean isEager()
public void setEager(Boolean eager)
public Processor createProcessor(RouteContext routeContext) throws Exception
ProcessorDefinition
createProcessor
in class ProcessorDefinition<ExpressionNode>
Exception
protected IdempotentRepository<?> resolveMessageIdRepository(RouteContext routeContext)
IdempotentRepository
to use
routeContext
- route context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |