summaryrefslogtreecommitdiff
path: root/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h')
-rw-r--r--TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h b/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h
new file mode 100644
index 00000000000..b260f1b17d4
--- /dev/null
+++ b/TAO/tao/Strategies/LFU_Connection_Purging_Strategy.h
@@ -0,0 +1,37 @@
+// ================================================================
+/**
+ * @file LFU_Connection_Purging_Strategy.h
+ *
+ * $Id$
+ *
+ * @author Chad Elliott (elliott_c@ociweb.com)
+ */
+// ================================================================
+
+#ifndef TAO_LFU_PURGING_STRATEGY_H
+#define TAO_LFU_PURGING_STRATEGY_H
+#include "ace/pre.h"
+
+#include "strategies_export.h"
+#include "tao/Connection_Purging_Strategy.h"
+
+class TAO_Strategies_Export TAO_LFU_Connection_Purging_Strategy:
+ public TAO_ULong_Connection_Purging_Strategy
+{
+public:
+ /// The constructor
+ TAO_LFU_Connection_Purging_Strategy (TAO_Resource_Factory* rf);
+
+ /// The destructor
+ virtual ~TAO_LFU_Connection_Purging_Strategy ();
+
+protected:
+
+ /// Called when accessing an item from the cache
+ virtual void update_item_i (TAO_DESCRIPTOR_INTERFACE* prop,
+ TAO_PURGING_CACHE_ITEM* item);
+
+};
+
+#include "ace/post.h"
+#endif /* TAO_LFU_PURGING_STRATEGY_H */