ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY > Class Template Referenceabstract

This class is an abstract base class for a caching strategy. More...

#include <Caching_Strategies_T.h>

Inheritance diagram for ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >:
Inheritance graph
[legend]

Public Member Functions

virtual ~ACE_Caching_Strategy ()
 Destructor.
 
virtual ATTRIBUTES attributes ()=0
 Accessor method for the timer attributes.
 
virtual double purge_percent ()=0
 Get the percentage of entries to purge.
 
virtual void purge_percent (double percentage)=0
 Set the percentage of entries to purge.
 
virtual int notify_bind (int result, const ATTRIBUTES &attr)=0
 
virtual int notify_find (int result, ATTRIBUTES &attr)=0
 
virtual int notify_unbind (int result, const ATTRIBUTES &attr)=0
 
virtual int notify_trybind (int result, ATTRIBUTES &attr)=0
 
virtual int notify_rebind (int result, const ATTRIBUTES &attr)=0
 
virtual CACHING_UTILITYcaching_utility ()=0
 Purge the cache.
 
virtual void dump () const =0
 Dumps the state of the object.
 

Detailed Description

template<class ATTRIBUTES, class CACHING_UTILITY>
class ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >

This class is an abstract base class for a caching strategy.

This class consists of all the interfaces a caching strategy should have and is used in association with the ACE_Caching_Strategy_Adaptor.

Constructor & Destructor Documentation

◆ ~ACE_Caching_Strategy()

Destructor.

Member Function Documentation

◆ attributes()

Accessor method for the timer attributes.

Implemented in ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >.

◆ caching_utility()

◆ dump()

◆ notify_bind()

virtual int ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::notify_bind ( int result,
const ATTRIBUTES & attr )
pure virtual

This method acts as a notification about the CONTAINERs bind method call.

Implemented in ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >.

◆ notify_find()

virtual int ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::notify_find ( int result,
ATTRIBUTES & attr )
pure virtual

This method acts as a notification about the CONTAINERs find method call

Implemented in ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >.

◆ notify_rebind()

virtual int ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::notify_rebind ( int result,
const ATTRIBUTES & attr )
pure virtual

This method acts as a notification about the CONTAINERs rebind method call

Implemented in ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >.

◆ notify_trybind()

virtual int ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::notify_trybind ( int result,
ATTRIBUTES & attr )
pure virtual

This method acts as a notification about the CONTAINERs trybind method call

Implemented in ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >.

◆ notify_unbind()

virtual int ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::notify_unbind ( int result,
const ATTRIBUTES & attr )
pure virtual

This method acts as a notification about the CONTAINERs unbind method call

Implemented in ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >.

◆ purge_percent() [1/2]

Get the percentage of entries to purge.

Implemented in ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >.

◆ purge_percent() [2/2]

virtual void ACE_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::purge_percent ( double percentage)
pure virtual

Set the percentage of entries to purge.

Implemented in ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >.


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