@Metadata(label="eip,routing") public class IdempotentConsumerDefinition extends OutputExpressionNode
inheritErrorHandler, log
Constructor and Description |
---|
IdempotentConsumerDefinition() |
IdempotentConsumerDefinition(org.apache.camel.Expression messageIdExpression,
org.apache.camel.spi.IdempotentRepository idempotentRepository) |
Modifier and Type | Method and Description |
---|---|
IdempotentConsumerDefinition |
completionEager(boolean completionEager)
Sets whether to complete the idempotent consumer eager or when the exchange is done.
|
IdempotentConsumerDefinition |
eager(boolean eager)
Sets whether to eagerly add the key to the idempotent repository or wait until the exchange is complete.
|
String |
getCompletionEager() |
String |
getEager() |
String |
getLabel()
Returns a label to describe this node such as the expression if some kind of expression node
|
org.apache.camel.spi.IdempotentRepository |
getMessageIdRepository() |
String |
getMessageIdRepositoryRef() |
String |
getRemoveOnFailure() |
String |
getShortName() |
String |
getSkipDuplicate() |
IdempotentConsumerDefinition |
messageIdRepository(org.apache.camel.spi.IdempotentRepository idempotentRepository)
Sets the message id repository for the idempotent consumer
|
IdempotentConsumerDefinition |
messageIdRepository(Supplier<org.apache.camel.spi.IdempotentRepository> idempotentRepository)
Sets the message id repository for the idempotent consumer
|
IdempotentConsumerDefinition |
messageIdRepositoryRef(String messageIdRepositoryRef)
Sets the reference name of the message id repository
|
IdempotentConsumerDefinition |
removeOnFailure(boolean removeOnFailure)
Sets whether to remove or keep the key on failure.
|
void |
setCompletionEager(String completionEager) |
void |
setEager(String eager) |
void |
setExpression(ExpressionDefinition expression)
Expression used to calculate the correlation key to use for duplicate check.
|
void |
setMessageIdRepository(org.apache.camel.spi.IdempotentRepository idempotentRepository) |
void |
setMessageIdRepositoryRef(String messageIdRepositoryRef) |
void |
setRemoveOnFailure(String removeOnFailure) |
void |
setSkipDuplicate(String skipDuplicate) |
IdempotentConsumerDefinition |
skipDuplicate(boolean skipDuplicate)
Sets whether to skip duplicates or not.
|
String |
toString() |
getOutputs, setOutputs
configureChild, getExpression, getExpressionType, id, preCreateProcessor, setExpression, setExpressionType
addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, circuitBreaker, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, convertBodyTo, convertBodyTo, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endCircuitBreaker, endDoTry, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getParent, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, kamelet, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, loopDoWhile, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, onCompletion, onException, onException, pipeline, pipeline, pipeline, pipeline, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, process, process, process, recipientList, recipientList, recipientList, recipientList, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, rollback, rollback, routeDescription, routeGroup, routeId, routingSlip, routingSlip, routingSlip, saga, sample, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setParent, setProperty, setProperty, setProperty, sort, sort, sort, split, split, split, split, startupOrder, step, step, stop, threads, threads, threads, threads, throttle, throttle, throttle, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, to, to, to, to, toD, toD, toD, toD, toD, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap
description, description, getCustomId, getDescription, getDescriptionText, getId, hasCustomIdAssigned, idOrCreate, setCustomId, setDescription, setGeneratedId, setId
public IdempotentConsumerDefinition()
public IdempotentConsumerDefinition(org.apache.camel.Expression messageIdExpression, org.apache.camel.spi.IdempotentRepository idempotentRepository)
public String getShortName()
public String getLabel()
ProcessorDefinition
getLabel
in interface org.apache.camel.NamedNode
getLabel
in class ExpressionNode
public IdempotentConsumerDefinition messageIdRepositoryRef(String messageIdRepositoryRef)
messageIdRepositoryRef
- the reference name of message id repositorypublic IdempotentConsumerDefinition messageIdRepository(org.apache.camel.spi.IdempotentRepository idempotentRepository)
idempotentRepository
- the repository instance of idempotentpublic IdempotentConsumerDefinition messageIdRepository(Supplier<org.apache.camel.spi.IdempotentRepository> idempotentRepository)
idempotentRepository
- the repository instance of idempotentpublic IdempotentConsumerDefinition eager(boolean eager)
eager
- true to add the key before processing, false to wait until the exchange is
complete.public IdempotentConsumerDefinition completionEager(boolean completionEager)
completionEager
- whether to complete eager or complete when the exchange is donepublic IdempotentConsumerDefinition removeOnFailure(boolean removeOnFailure)
removeOnFailure
- true to remove the key, false to keep the key if the exchange fails.public IdempotentConsumerDefinition skipDuplicate(boolean skipDuplicate)
Exchange.DUPLICATE_MESSAGE
set to a
Boolean.TRUE
value. A none duplicate message will not have this property set.skipDuplicate
- true to skip duplicates, false to allow duplicates.public void setExpression(ExpressionDefinition expression)
setExpression
in class ExpressionNode
public String getMessageIdRepositoryRef()
public void setMessageIdRepositoryRef(String messageIdRepositoryRef)
public org.apache.camel.spi.IdempotentRepository getMessageIdRepository()
public void setMessageIdRepository(org.apache.camel.spi.IdempotentRepository idempotentRepository)
public String getEager()
public void setEager(String eager)
public String getSkipDuplicate()
public void setSkipDuplicate(String skipDuplicate)
public String getRemoveOnFailure()
public void setRemoveOnFailure(String removeOnFailure)
public String getCompletionEager()
public void setCompletionEager(String completionEager)
Apache Camel