TAO_LFU_Connection_Purging_Strategy Class Reference

The Least Frequently Used connection purging strategy. More...

#include <LFU_Connection_Purging_Strategy.h>

Inheritance diagram for TAO_LFU_Connection_Purging_Strategy:

Inheritance graph
[legend]
Collaboration diagram for TAO_LFU_Connection_Purging_Strategy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_LFU_Connection_Purging_Strategy (int cache_maximum)
 The constructor.

virtual void update_item (TAO_Transport *transport)
 Called when accessing an item from the cache.


Detailed Description

The Least Frequently Used connection purging strategy.

This class increments the order information on each item passed in. This way, the least frequently used transport has the smallest ordering number and will therefore be purged first.

Definition at line 38 of file LFU_Connection_Purging_Strategy.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_LFU_Connection_Purging_Strategy::TAO_LFU_Connection_Purging_Strategy int  cache_maximum  ) 
 

The constructor.

Definition at line 11 of file LFU_Connection_Purging_Strategy.cpp.

00013 : TAO_Connection_Purging_Strategy (cache_maximum)
00014 {
00015 }


Member Function Documentation

void TAO_LFU_Connection_Purging_Strategy::update_item TAO_Transport transport  )  [virtual]
 

Called when accessing an item from the cache.

Implements TAO_Connection_Purging_Strategy.

Definition at line 18 of file LFU_Connection_Purging_Strategy.cpp.

References TAO_Transport::purging_order().

00019 {
00020   transport->purging_order (transport->purging_order () + 1);
00021 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:41:17 2006 for TAO_Strategies by doxygen 1.3.6