net_instaweb::PropertyValue Class Reference

Holds the value & stability-metadata for a property. More...

#include "property_cache.h"

List of all members.

Public Member Functions

StringPiece value () const
bool has_value () const
int64 write_timestamp_ms () const
bool was_read ()
bool IsStable (int stable_hit_per_thousand_threshold) const

Friends

class PropertyCache
class PropertyPage

Detailed Description

Holds the value & stability-metadata for a property.


Member Function Documentation

bool net_instaweb::PropertyValue::IsStable ( int  stable_hit_per_thousand_threshold  )  const

Determines whether this property is sufficiently stable to be considered useful. E.g. if 30% of the time a property is wrong, then it probably cannot be relied upon for making optimization decisions.

bool net_instaweb::PropertyValue::was_read (  )  [inline]

Determines whether a read was completed. Thus was_read() can be true even if !has_value().

int64 net_instaweb::PropertyValue::write_timestamp_ms (  )  const

The timestamp of the last time this data was written (in milliseconds since 1970).


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:14 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3