3 // ================================================================
5 * @file LRU_Connection_Purging_Strategy.h
7 * @author Chad Elliott (elliott_c@ociweb.com)
9 // ================================================================
11 #ifndef TAO_LRU_PURGING_STRATEGY_H
12 #define TAO_LRU_PURGING_STRATEGY_H
14 #include /**/ "ace/pre.h"
16 #include "tao/Connection_Purging_Strategy.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 // ****************************************************************
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
27 * @class TAO_LRU_Connection_Purging_Strategy
29 * @brief The Least Recently Used connection purging strategy
31 * This class maintains it's own count which is applied to the
32 * item passed in. This way, the least recently used transport
33 * has the smallest ordering number and will therefore be purged
36 class TAO_Export TAO_LRU_Connection_Purging_Strategy
37 : public TAO_Connection_Purging_Strategy
41 TAO_LRU_Connection_Purging_Strategy (int cache_maximum
);
44 virtual ~TAO_LRU_Connection_Purging_Strategy ();
46 /// Called when accessing an item from the cache
47 virtual void update_item (TAO_Transport
& transport
);
50 /// The ordering information for each transport in the cache
54 TAO_END_VERSIONED_NAMESPACE_DECL
56 #include /**/ "ace/post.h"
58 #endif /* TAO_LRU_PURGING_STRATEGY_H */