TAO_LRU_Connection_Purging_Strategy Class Reference

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

#include <LRU_Connection_Purging_Strategy.h>

Inheritance diagram for TAO_LRU_Connection_Purging_Strategy:

Inheritance graph
[legend]
Collaboration diagram for TAO_LRU_Connection_Purging_Strategy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_LRU_Connection_Purging_Strategy (int cache_maximum)
 The constructor.

virtual ~TAO_LRU_Connection_Purging_Strategy (void)
 The destructor.

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


Private Attributes

unsigned long order_
 The ordering information for each transport in the cache.


Detailed Description

The Least Recently Used connection purging strategy.

This class maintains it's own count which is applied to the item passed in. This way, the least recently used transport has the smallest ordering number and will therefore be purged first.

Definition at line 39 of file LRU_Connection_Purging_Strategy.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_LRU_Connection_Purging_Strategy::TAO_LRU_Connection_Purging_Strategy int  cache_maximum  ) 
 

The constructor.

Definition at line 12 of file LRU_Connection_Purging_Strategy.cpp.

00014  : TAO_Connection_Purging_Strategy (cache_maximum),
00015    order_ (0)
00016 {
00017 }

TAO_LRU_Connection_Purging_Strategy::~TAO_LRU_Connection_Purging_Strategy void   )  [virtual]
 

The destructor.

Definition at line 20 of file LRU_Connection_Purging_Strategy.cpp.

00021 {
00022 }


Member Function Documentation

void TAO_LRU_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 26 of file LRU_Connection_Purging_Strategy.cpp.

References TAO_Transport::purging_order().

00027 {
00028   transport->purging_order (++this->order_);
00029 }


Member Data Documentation

unsigned long TAO_LRU_Connection_Purging_Strategy::order_ [private]
 

The ordering information for each transport in the cache.

Definition at line 54 of file LRU_Connection_Purging_Strategy.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:22:27 2006 for TAO by doxygen 1.3.6