FIFO_Connection_Purging_Strategy.cpp

Go to the documentation of this file.
00001 // FIFO_Connection_Purging_Strategy.cpp,v 1.7 2006/06/20 07:10:50 jwillemsen Exp
00002 
00003 #include "tao/Strategies/FIFO_Connection_Purging_Strategy.h"
00004 #include "tao/Transport.h"
00005 
00006 ACE_RCSID(tao, FIFO_Connection_Purging_Strategy, "FIFO_Connection_Purging_Strategy.cpp,v 1.7 2006/06/20 07:10:50 jwillemsen Exp")
00007 
00008 
00009 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00010 
00011 TAO_FIFO_Connection_Purging_Strategy::TAO_FIFO_Connection_Purging_Strategy (
00012                                                             int cache_maximum)
00013  : TAO_Connection_Purging_Strategy (cache_maximum),
00014    // Initialized to 1 to insure that the transports purging_order
00015    // is only 0 upon initialization.
00016    order_ (1)
00017 {
00018 }
00019 
00020 void
00021 TAO_FIFO_Connection_Purging_Strategy::update_item (TAO_Transport* transport)
00022 {
00023   // FIFO, so only update the purging order if this
00024   // item has not been cached yet.
00025   if (transport->purging_order () == 0)
00026     {
00027       transport->purging_order (this->order_++);
00028     }
00029 }
00030 
00031 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 13:39:29 2006 for TAO_Strategies by doxygen 1.3.6