TAO  2.3.3
Public Member Functions | Private Attributes | List of all members
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]

Public Member Functions

 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...
 
- Public Member Functions inherited from TAO_Connection_Purging_Strategy
 TAO_Connection_Purging_Strategy (int cache_maximum)
 The constructor. More...
 
virtual ~TAO_Connection_Purging_Strategy (void)
 The destructor. More...
 
virtual int cache_maximum (void) const
 Return the maximum number of cache entries. 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.

Constructor & Destructor Documentation

TAO_LRU_Connection_Purging_Strategy::TAO_LRU_Connection_Purging_Strategy ( int  cache_maximum)

The constructor.

TAO_LRU_Connection_Purging_Strategy::~TAO_LRU_Connection_Purging_Strategy ( void  )
virtual

The destructor.

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.

Member Data Documentation

unsigned long TAO_LRU_Connection_Purging_Strategy::order_
private

The ordering information for each transport in the cache.


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