Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Connection_Purging_Strategy.h

Go to the documentation of this file.
00001 // ================================================================
00002 /**
00003  *  @file   Connection_Purging_Strategy.h
00004  *
00005  *  $Id: Connection_Purging_Strategy.h,v 1.1.1.1 2001/12/04 14:34:41 chad Exp $
00006  *
00007  *  @author Chad Elliott (elliott_c@ociweb.com)
00008  */
00009 // ================================================================
00010 
00011 #ifndef TAO_PURGING_STRATEGY_H
00012 #define TAO_PURGING_STRATEGY_H
00013 #include "ace/pre.h"
00014 
00015 #include "TAO_Export.h"
00016 
00017 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00018 # pragma once
00019 #endif /* ACE_LACKS_PRAGMA_ONCE */
00020 
00021 
00022 class TAO_Transport;
00023 
00024 // ****************************************************************
00025 
00026 /**
00027  * @class TAO_Connection_Purging_Strategy
00028  *
00029  * @brief The base class for all purging strategies
00030  *
00031  * This class is used by the Transport_Cache_Manager to maintain
00032  * ordering information on each Transport that is created.
00033  */
00034 
00035 class TAO_Export TAO_Connection_Purging_Strategy
00036 {
00037 public:
00038   /// The constructor
00039   TAO_Connection_Purging_Strategy (int cache_maximum);
00040 
00041   /// The destructor
00042   virtual ~TAO_Connection_Purging_Strategy (void);
00043 
00044   /// Return the maximum number of cache entries
00045   virtual int cache_maximum (void) const;
00046 
00047   /// Sub-classes must implement these methods
00048   virtual void update_item (TAO_Transport* transport) = 0;
00049 
00050 private:
00051   /// The maximum number of cach entries
00052   int cache_maximum_;
00053 };
00054 
00055 #if defined (__ACE_INLINE__)
00056 # include "tao/Connection_Purging_Strategy.inl"
00057 #endif /* __ACE_INLINE__ */
00058 
00059 #include "ace/post.h"
00060 #endif /* TAO_PURGING_STRATEGY_H */

Generated on Mon Jun 16 13:48:05 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002