Package org.apache.camel.spi
Interface ClaimCheckRepository
- All Superinterfaces:
AutoCloseable,Service
Access to a repository of keys to implement the Claim Check
pattern.
The add and contains methods is operating according to the
.
Map contract, and the
push and pop methods is operating according to the Stack contract.
See important details about the Claim Check EIP implementation in Apache Camel at
invalid reference
org.apache.camel.processor.ClaimCheckProcessor
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds the exchange to the repository.voidclear()Clear the repository.booleanReturns true if this repository contains the specified key.Gets the exchange from the repository.getAndRemove(String key) Gets and removes the exchange from the repository.pop()Pops the repository and returns the latest.voidPushes the exchange on top of the repository.
-
Method Details
-
add
Adds the exchange to the repository.- Parameters:
key- the claim check key- Returns:
- true if this repository did not already contain the specified key
-
contains
Returns true if this repository contains the specified key.- Parameters:
key- the claim check key- Returns:
- true if this repository contains the specified key
-
get
Gets the exchange from the repository.- Parameters:
key- the claim check key
-
getAndRemove
Gets and removes the exchange from the repository.- Parameters:
key- the claim check key- Returns:
- the removed exchange, or null if the key did not exists.
-
push
Pushes the exchange on top of the repository. -
pop
Exchange pop()Pops the repository and returns the latest. Or returns null if the stack is empty. -
clear
void clear()Clear the repository.
-