00001 // -*- C++ -*- 00002 00003 // ================================================================ 00004 /** 00005 * @file NULL_Connection_Purging_Strategy.h 00006 * 00007 * $Id: NULL_Connection_Purging_Strategy.h 73152 2006-06-20 07:33:02Z jwillemsen $ 00008 * 00009 * @author Chad Elliott (elliott_c@ociweb.com) 00010 */ 00011 // ================================================================ 00012 00013 #ifndef TAO_NULL_PURGING_STRATEGY_H 00014 #define TAO_NULL_PURGING_STRATEGY_H 00015 #include /**/ "ace/pre.h" 00016 00017 #include "tao/Strategies/strategies_export.h" 00018 00019 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00020 # pragma once 00021 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00022 00023 #include "tao/Connection_Purging_Strategy.h" 00024 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 /** 00029 * @class TAO_NULL_Connection_Purging_Strategy 00030 * 00031 * @brief The null connection purging strategy 00032 * 00033 * This class does not do anything. 00034 */ 00035 00036 class TAO_Strategies_Export TAO_NULL_Connection_Purging_Strategy: public TAO_Connection_Purging_Strategy 00037 { 00038 public: 00039 /// The constructor 00040 TAO_NULL_Connection_Purging_Strategy (int cache_maximum); 00041 00042 /// Does nothing. 00043 virtual void update_item (TAO_Transport* transport); 00044 00045 /// Returns -1 to signify no maximum 00046 virtual int cache_maximum (void) const; 00047 }; 00048 00049 TAO_END_VERSIONED_NAMESPACE_DECL 00050 00051 #include /**/ "ace/post.h" 00052 #endif /* TAO_NULL_PURGING_STRATEGY_H */