3 // ================================================================
5 * @file FIFO_Connection_Purging_Strategy.h
7 * @author Chad Elliott (elliott_c@ociweb.com)
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)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 // ****************************************************************
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
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
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
);
47 /// The ordering information for each transport in the cache
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #include /**/ "ace/post.h"
54 #endif /* TAO_FIFO_PURGING_STRATEGY_H */