public interface ClaimCheckRepository extends Service
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 org.apache.camel.processor.ClaimCheckProcessor
.Modifier and Type | Method and Description |
---|---|
boolean |
add(String key,
Exchange exchange)
Adds the exchange to the repository.
|
void |
clear()
Clear the repository.
|
boolean |
contains(String key)
Returns true if this repository contains the specified key.
|
Exchange |
get(String key)
Gets the exchange from the repository.
|
Exchange |
getAndRemove(String key)
Gets and removes the exchange from the repository.
|
Exchange |
pop()
Pops the repository and returns the latest.
|
void |
push(Exchange exchange)
Pushes the exchange on top of the repository.
|
boolean add(String key, Exchange exchange)
key
- the claim check keyboolean contains(String key)
key
- the claim check keyExchange get(String key)
key
- the claim check keyExchange getAndRemove(String key)
key
- the claim check keyExchange pop()
void clear()
Apache Camel