Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Strategies / LFU_Connection_Purging_Strategy.h
blob93c55d33a94bb819de29931e9b76bff71df7799b
1 // -*- C++ -*-
3 // ================================================================
4 /**
5 * @file LFU_Connection_Purging_Strategy.h
7 * @author Chad Elliott (elliott_c@ociweb.com)
8 */
9 // ================================================================
11 #ifndef TAO_LFU_PURGING_STRATEGY_H
12 #define TAO_LFU_PURGING_STRATEGY_H
13 #include /**/ "ace/pre.h"
15 #include "tao/Strategies/strategies_export.h"
16 #include "tao/Connection_Purging_Strategy.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 // ****************************************************************
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 /**
27 * @class TAO_LFU_Connection_Purging_Strategy
29 * @brief The Least Frequently Used connection purging strategy
31 * This class increments the order information on each item passed
32 * in. This way, the least frequently used transport has the
33 * smallest ordering number and will therefore be purged first.
35 class TAO_Strategies_Export TAO_LFU_Connection_Purging_Strategy:
36 public TAO_Connection_Purging_Strategy
38 public:
39 /// The constructor
40 TAO_LFU_Connection_Purging_Strategy (int cache_maximum);
42 /// Called when accessing an item from the cache
43 virtual void update_item (TAO_Transport& transport);
46 TAO_END_VERSIONED_NAMESPACE_DECL
48 #include /**/ "ace/post.h"
49 #endif /* TAO_LFU_PURGING_STRATEGY_H */