org.apache.camel.spi
Interface IdempotentRepository<E>

All Known Implementing Classes:
FileIdempotentRepository, MemoryIdempotentRepository

public interface IdempotentRepository<E>

Access to a repository of Message IDs to implement the Idempotent Consumer pattern.

The add and contains methods is operating according to the Set contract.

Version:
$Revision: 738604 $

Method Summary
 boolean add(E key)
          Adds the key to the repository.
 boolean contains(E key)
          Returns true if this repository contains the specified element.
 

Method Detail

add

boolean add(E key)
Adds the key to the repository.

Parameters:
key - the key of the message for duplicate test
Returns:
true if this repository did not already contain the specified element

contains

boolean contains(E key)
Returns true if this repository contains the specified element.

Parameters:
key - the key of the message
Returns:
true if this repository contains the specified element


Copyright © 2009 Apache Software Foundation. All Rights Reserved.