Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / LRU_Connection_Purging_Strategy.h
blobf13ab17e8abe63816f423e69558a31fb58bf413b
1 // -*- C++ -*-
3 // ================================================================
4 /**
5 * @file LRU_Connection_Purging_Strategy.h
7 * @author Chad Elliott (elliott_c@ociweb.com)
8 */
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)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 // ****************************************************************
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 /**
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
34 * first.
36 class TAO_Export TAO_LRU_Connection_Purging_Strategy
37 : public TAO_Connection_Purging_Strategy
39 public:
40 /// The constructor
41 TAO_LRU_Connection_Purging_Strategy (int cache_maximum);
43 /// The destructor
44 virtual ~TAO_LRU_Connection_Purging_Strategy ();
46 /// Called when accessing an item from the cache
47 virtual void update_item (TAO_Transport& transport);
49 private:
50 /// The ordering information for each transport in the cache
51 unsigned long order_;
54 TAO_END_VERSIONED_NAMESPACE_DECL
56 #include /**/ "ace/post.h"
58 #endif /* TAO_LRU_PURGING_STRATEGY_H */