public interface IdempotentRepository extends Service
Set
contract.
The repository supports eager (default) and non-eager mode.
Modifier and Type | Method and Description |
---|---|
default boolean |
add(Exchange exchange,
String key)
Adds the key to the repository.
|
boolean |
add(String key)
Adds the key to the repository.
|
void |
clear()
Clear the repository.
|
default boolean |
confirm(Exchange exchange,
String key)
Confirms the key, after the exchange has been processed successfully.
|
boolean |
confirm(String key)
Confirms the key, after the exchange has been processed successfully.
|
default boolean |
contains(Exchange exchange,
String key)
Returns true if this repository contains the specified element.
|
boolean |
contains(String key)
Returns true if this repository contains the specified element.
|
default boolean |
remove(Exchange exchange,
String key)
Removes the key from the repository.
|
boolean |
remove(String key)
Removes the key from the repository.
|
boolean add(String key)
key
- the key of the message for duplicate testboolean contains(String key)
key
- the key of the messageboolean remove(String key)
key
- the key of the message for duplicate testboolean confirm(String key)
key
- the key of the message for duplicate testvoid clear()
default boolean add(Exchange exchange, String key)
key
- the key of the message for duplicate testdefault boolean contains(Exchange exchange, String key)
key
- the key of the messagedefault boolean remove(Exchange exchange, String key)
key
- the key of the message for duplicate testApache Camel