@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.
|
Boolean |
getCompletionEager() |
Boolean |
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() |
Boolean |
getRemoveOnFailure() |
String |
getShortName() |
Boolean |
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(Boolean completionEager) |
void |
setEager(Boolean 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(Boolean removeOnFailure) |
void |
setSkipDuplicate(Boolean skipDuplicate) |
IdempotentConsumerDefinition |
skipDuplicate(boolean skipDuplicate)
Sets whether to skip duplicates or not.
|
String |
toString() |
getOutputs, setOutputs
configureChild, getExpression, id, preCreateProcessor, setExpression
addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, attribute, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, convertBodyTo, convertBodyTo, delay, delay, delay, doTry, dynamicRouter, dynamicRouter, end, endChoice, endDoTry, endHystrix, endParent, endRest, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getIndex, getInterceptStrategies, getOtherAttributes, getParent, hystrix, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, 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, placeholder, 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, 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, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setBody, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setOtherAttributes, setParent, setProperty, setProperty, sort, sort, sort, 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, 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, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptions
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 Boolean getSkipDuplicate()
public void setSkipDuplicate(Boolean skipDuplicate)
public Boolean getRemoveOnFailure()
public void setRemoveOnFailure(Boolean removeOnFailure)
public Boolean getCompletionEager()
public void setCompletionEager(Boolean completionEager)
Apache Camel