#include <FIFO_Connection_Purging_Strategy.h>
Inheritance diagram for TAO_FIFO_Connection_Purging_Strategy:


Public Member Functions | |
| TAO_FIFO_Connection_Purging_Strategy (int cache_maximum) | |
| The constructor. | |
| virtual void | update_item (TAO_Transport *transport) |
| Called when accessing an item from the cache. | |
Private Attributes | |
| unsigned long | order_ |
| The ordering information for each transport in the cache. | |
This class maintains it's own count which is only applied to the item passed if it has not yet been cached. This way, each successive transport has a larger ordering number than the previous. This will cause the first transport to be purged first.
Definition at line 39 of file FIFO_Connection_Purging_Strategy.h.
|
|
The constructor.
Definition at line 11 of file FIFO_Connection_Purging_Strategy.cpp.
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 } |
|
|
Called when accessing an item from the cache.
Implements TAO_Connection_Purging_Strategy. Definition at line 21 of file FIFO_Connection_Purging_Strategy.cpp. References TAO_Transport::purging_order().
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 }
|
|
|
The ordering information for each transport in the cache.
Definition at line 51 of file FIFO_Connection_Purging_Strategy.h. |
1.3.6