TAO_Strategies
2.4.0
|
The Least Frequently Used connection purging strategy. More...
#include <LFU_Connection_Purging_Strategy.h>
Public Member Functions | |
TAO_LFU_Connection_Purging_Strategy (int cache_maximum) | |
The constructor. More... | |
virtual void | update_item (TAO_Transport &transport) |
Called when accessing an item from the cache. More... | |
![]() | |
TAO_Connection_Purging_Strategy (int cache_maximum) | |
virtual | ~TAO_Connection_Purging_Strategy (void) |
virtual int | cache_maximum (void) const |
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.
TAO_LFU_Connection_Purging_Strategy::TAO_LFU_Connection_Purging_Strategy | ( | int | cache_maximum | ) |
The constructor.
|
virtual |
Called when accessing an item from the cache.
Implements TAO_Connection_Purging_Strategy.