org.mule.routing.inbound
Interface IdempotentMessageIdStore

All Known Implementing Classes:
IdempotentInMemoryMessageIdStore

public interface IdempotentMessageIdStore

IdempotentMessageIdStore is the main interface used by IdempotentReceiver for storing received message IDs.

See Also:
IdempotentInMemoryMessageIdStore}

Method Summary
 boolean containsId(Object id)
          Check whether the given ID is already registered with this store.
 boolean storeId(Object id)
          Store the given ID.
 

Method Detail

containsId

boolean containsId(Object id)
                   throws IllegalArgumentException,
                          Exception
Check whether the given ID is already registered with this store.

Parameters:
id - the ID to check
Returns:
true if the ID is stored or false if it could not be found
Throws:
IllegalArgumentException - if the given ID is null
Exception - if any implementation-specific error occured, e.g. when the store is not available

storeId

boolean storeId(Object id)
                throws IllegalArgumentException,
                       Exception
Store the given ID.

Parameters:
id - the ID to store
Returns:
true if the ID was stored properly, or false if it already existed
Throws:
IllegalArgumentException - if the given ID cannot be stored or is null
Exception - if the store is not available or any other implementation-specific error occured


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.