public interface IdempotentRepository<E> extends Service
Set
contract.
The repository supports eager (default) and non-eager mode.
ExchangeIdempotentRepository
instead.
Important: Implementations of this should use String as the generic type as that is
what is required by Camel to allow using the idempotent repository with the Idempotent Consumer EIP
and also as file consumer read-lock. It was a mistake to make IdempotentRepository
parameterized,
as it should have been a pre-configured to use a String type.ExchangeIdempotentRepository
Modifier and Type | Method and Description |
---|---|
boolean |
add(E key)
Adds the key to the repository.
|
void |
clear()
Clear the repository.
|
boolean |
confirm(E key)
Confirms the key, after the exchange has been processed successfully.
|
boolean |
contains(E key)
Returns true if this repository contains the specified element.
|
boolean |
remove(E key)
Removes the key from the repository.
|
boolean add(E key)
key
- the key of the message for duplicate testboolean contains(E key)
key
- the key of the messageboolean remove(E key)
key
- the key of the message for duplicate testboolean confirm(E key)
key
- the key of the message for duplicate testvoid clear()
Apache Camel