11 : maxMemoryUsage_(maxMemoryUsageMB*1024*1024)
26 fragmentMap::iterator
pos =
store_.lower_bound(newKey);
28 if(pos !=
store_.end() && !(
store_.key_comp()(newKey, pos->first)))
31 pos->second.addToChain(chain);
33 if ( pos->second.complete() )
60 fragmentMap::iterator it =
store_.begin(), itEnd =
store_.end();
65 it->second.addToStaleWindowStartTime(duration);
72 fragmentMap::iterator it =
store_.begin(), itEnd =
store_.end();
77 it->second.resetStaleWindowStartTime();
85 fragmentMap::iterator
pos =
store_.begin();
88 while ( (pos != end) && (pos->second.staleWindowStartTime() > cutOffTime ) )
TimePoint_t getCurrentTime()
const bool addFragment(I2OChain &)
FragmentStore(size_t maxMemoryUsageMB)
boost::posix_time::time_duration Duration_t
boost::posix_time::ptime TimePoint_t
void resetStaleEventTimes()
Container::value_type value_type
void addToStaleEventTimes(const utils::Duration_t)
const bool getStaleEvent(I2OChain &, utils::Duration_t timeout)
size_t memoryUsed() const
FragKey fragmentKey() const
void resetStaleWindowStartTime()