xmltooling::ReplayCache Class Reference

Helper class on top of StorageService for detecting message replay. More...

#include <xmltooling/util/ReplayCache.h>

List of all members.

Public Member Functions

 ReplayCache (StorageService *storage=NULL)
 Creates a replay cache on top of a particular StorageService.
virtual bool check (const char *context, const char *s, time_t expires)
 Returns true iff the check value is not found in the cache, and stores it.
bool check (const char *context, const XMLCh *s, time_t expires)
 Returns true iff the check value is not found in the cache, and stores it.


Detailed Description

Helper class on top of StorageService for detecting message replay.


Constructor & Destructor Documentation

xmltooling::ReplayCache::ReplayCache ( StorageService storage = NULL  ) 

Creates a replay cache on top of a particular StorageService.

The lifetime of the StorageService MUST be longer than the lifetime of the ReplayCache.

Parameters:
storage pointer to a StorageService, or NULL to keep cache in memory


Member Function Documentation

bool xmltooling::ReplayCache::check ( const char *  context,
const XMLCh *  s,
time_t  expires 
) [inline]

Returns true iff the check value is not found in the cache, and stores it.

Parameters:
context a context label to subdivide the cache
s value to check
expires time for disposal of value from cache

virtual bool xmltooling::ReplayCache::check ( const char *  context,
const char *  s,
time_t  expires 
) [virtual]

Returns true iff the check value is not found in the cache, and stores it.

Parameters:
context a context label to subdivide the cache
s value to check
expires time for disposal of value from cache


The documentation for this class was generated from the following file:
Generated on Mon Oct 19 14:18:35 2009 for xmltooling by  doxygen 1.4.7