Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

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
Collaboration diagram for TAO_LRU_Connection_Purging_Strategy:

Collaboration graph
List of all members.

Public Methods

 TAO_LRU_Connection_Purging_Strategy (int cache_maximum)
 The constructor. More...

virtual ~TAO_LRU_Connection_Purging_Strategy (void)
 The destructor. More...

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

Private Attributes

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

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 34 of file LRU_Connection_Purging_Strategy.h.

Constructor & Destructor Documentation

TAO_LRU_Connection_Purging_Strategy::TAO_LRU_Connection_Purging_Strategy int    cache_maximum

The constructor.

Definition at line 9 of file LRU_Connection_Purging_Strategy.cpp.

00011  : TAO_Connection_Purging_Strategy (cache_maximum),
00012    order_ (0)
00013 {
00014 }

TAO_LRU_Connection_Purging_Strategy::~TAO_LRU_Connection_Purging_Strategy void    [virtual]

The destructor.

Definition at line 17 of file LRU_Connection_Purging_Strategy.cpp.

00018 {
00019 }

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 23 of file LRU_Connection_Purging_Strategy.cpp.

References TAO_Transport::purging_order.

00024 {
00025   transport->purging_order (this->order_++);
00026 }

Member Data Documentation

unsigned long TAO_LRU_Connection_Purging_Strategy::order_ [private]

The ordering information for each transport in the cache.

Definition at line 48 of file LRU_Connection_Purging_Strategy.h.

The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:28:12 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002