AMPS C/C++ Client Class Reference
AMPS C/C++ Client Version 5.3.4.4
AMPS::RecoveryPointAdapterImpl Class Referenceabstract

RecoveryPointAdapterImpl virtual base class for implementing external storage of subscription recovery points and recovery from storage. More...

#include <RecoveryPointAdapter.hpp>

+ Inheritance diagram for AMPS::RecoveryPointAdapterImpl:

Public Member Functions

virtual bool next (RecoveryPoint &current_)=0
 Recovery is done by iteration over elements in storage. More...
 
virtual void update (RecoveryPoint &recoveryPoint_)=0
 Update the storage information with the given recovery point. More...
 
virtual void purge ()=0
 Remove all data from the storage.
 
virtual void purge (const Field &subId_)=0
 Remove the specified subId_ from the storage. More...
 
virtual void close ()=0
 Take any necessary actions to close the associated storage.
 
virtual void prune ()
 Take any necessary actions to reduce associated storage size.
 

Detailed Description

RecoveryPointAdapterImpl virtual base class for implementing external storage of subscription recovery points and recovery from storage.

Member Function Documentation

virtual bool AMPS::RecoveryPointAdapterImpl::next ( RecoveryPoint current_)
pure virtual

Recovery is done by iteration over elements in storage.

This function modifies the passed in argument to be the next stored RecoveryPoint or an empty RecoveryPoint to indicate completion.

Parameters
current_The RecoveryPoint to set as the next recovery item.

Implemented in AMPS::ConflatingRecoveryPointAdapter, and AMPS::SOWRecoveryPointAdapter.

virtual void AMPS::RecoveryPointAdapterImpl::purge ( const Field subId_)
pure virtual

Remove the specified subId_ from the storage.

Parameters
subId_The sub id to remove

Implemented in AMPS::ConflatingRecoveryPointAdapter, and AMPS::SOWRecoveryPointAdapter.

virtual void AMPS::RecoveryPointAdapterImpl::update ( RecoveryPoint recoveryPoint_)
pure virtual

Update the storage information with the given recovery point.

Parameters
recoveryPoint_The new/updated RecoveryPoint to save.

Implemented in AMPS::ConflatingRecoveryPointAdapter, and AMPS::SOWRecoveryPointAdapter.


The documentation for this class was generated from the following file: