Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / Strategies / FIFO_Connection_Purging_Strategy.h
blob89546535b21f23b7fe55aa79d6f24c86e11faee0
1 // -*- C++ -*-
3 // ================================================================
4 /**
5 * @file FIFO_Connection_Purging_Strategy.h
7 * @author Chad Elliott (elliott_c@ociweb.com)
8 */
9 // ================================================================
11 #ifndef TAO_FIFO_PURGING_STRATEGY_H
12 #define TAO_FIFO_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_FIFO_Connection_Purging_Strategy
29 * @brief The First In First Out connection purging strategy
31 * This class maintains it's own count which is only applied to the
32 * item passed if it has not yet been cached. This way, each successive
33 * transport has a larger ordering number than the previous. This will
34 * cause the first transport to be purged first.
36 class TAO_Strategies_Export TAO_FIFO_Connection_Purging_Strategy:
37 public TAO_Connection_Purging_Strategy
39 public:
40 /// The constructor
41 TAO_FIFO_Connection_Purging_Strategy (int cache_maximum);
43 /// Called when accessing an item from the cache
44 virtual void update_item (TAO_Transport& transport);
46 private:
47 /// The ordering information for each transport in the cache
48 unsigned long order_;
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #include /**/ "ace/post.h"
54 #endif /* TAO_FIFO_PURGING_STRATEGY_H */