#include "tensorstore/staleness_bound.h"
struct tensorstore::StalenessBounds;

Combines staleness bounds for metadata and data.

Constructors

StalenessBounds();

Initializes the metadata and data bound to absl::InfiniteFuture(), which ensures stale data is never seen.

StalenessBounds(StalenessBound metadata, StalenessBound data);

Initializes the metadata and data bounds separately.

StalenessBounds(StalenessBound bound);

Initializes both the metadata and data bounds to bound.

StalenessBounds(absl::Time newer_than_time);

Initializes both the metadata and data bounds to newer_than_time.

StalenessBounds(absl::Duration duration_before_now);

Initializes both the metadata and data bounds to duration_before_now.

Data members

StalenessBound metadata;

Staleness bound for metadata.

StalenessBound data;

Staleness bound for data.

Methods

StalenessBounds BoundAtOpen(absl::Time open_time) const;

Returns the effective bounds given the specified open_time.