TAO_Strategies
2.4.0
|
The First In First Out connection purging strategy. More...
#include <FIFO_Connection_Purging_Strategy.h>
Public Member Functions | |
TAO_FIFO_Connection_Purging_Strategy (int cache_maximum) | |
The constructor. More... | |
virtual void | update_item (TAO_Transport &transport) |
Called when accessing an item from the cache. More... | |
![]() | |
TAO_Connection_Purging_Strategy (int cache_maximum) | |
virtual | ~TAO_Connection_Purging_Strategy (void) |
virtual int | cache_maximum (void) const |
Private Attributes | |
unsigned long | order_ |
The ordering information for each transport in the cache. More... | |
The First In First Out connection purging strategy.
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.
TAO_FIFO_Connection_Purging_Strategy::TAO_FIFO_Connection_Purging_Strategy | ( | int | cache_maximum | ) |
The constructor.
|
virtual |
Called when accessing an item from the cache.
Implements TAO_Connection_Purging_Strategy.
|
private |
The ordering information for each transport in the cache.