CatapultServer
v0.5.0.1 (Elephant)
|
constexpr Timestamp SubtractNonNegative(const Timestamp ×tamp, const TimeSpan &timeSpan)
Subtracts timeSpan from timestamp and returns the maximum of the difference and zero.
Definition: TimeSpan.h:139
void prune(Timestamp timestamp)
Removes all timestamped hashes that have timestamps prior to the given timestamp minus the retention ...
Definition: HashCacheDelta.cpp:42
Decorates a view and supplies a read-only view.
Definition: ReadOnlyViewSupplier.h:28
Mixin that wraps BaseSetDelta and provides a facade on top of BaseSetDelta::deltas().
Definition: DeltaElementsMixin.h:30
deltaset::PruningBoundary< ValueType > m_pruningBoundary
Definition: HashCacheDelta.h:61
HashCacheDelta(const HashCacheTypes::BaseSetDeltaPointers &hashSets, const HashCacheTypes::Options &options)
Creates a delta around hashSets and options.
Definition: HashCacheDelta.h:68
A mixin for adding basic insert and remove support to a cache.
Definition: CacheMixins.h:273
Represents a time duration.
Definition: TimeSpan.h:30
A read-only overlay on top of a cache that provides support for contains.
Definition: HashCacheTypes.h:37
HashCacheDescriptor::ValueType ValueType
Definition: HashCacheDelta.h:41
A mixin for adding contains support to a cache.
Definition: CacheMixins.h:54
std::shared_ptr< BaseSetDeltaType > BaseSetDeltaPointerType
Base set delta pointer type.
Definition: CacheDescriptorAdapters.h:205
HashCacheTypes::PrimaryTypes::BaseSetDeltaPointerType m_pOrderedDelta
Definition: HashCacheDelta.h:59
deltaset::PruningBoundary< ValueType > pruningBoundary() const
Gets the pruning boundary that is used during commit.
Definition: HashCacheDelta.cpp:38
Represents a hash with attached timestamp.
Definition: TimestampedHash.h:31
utils::TimeSpan m_retentionTime
Definition: HashCacheDelta.h:60
A class that can be moved but not copied.
Definition: NonCopyable.h:43
utils::TimeSpan retentionTime() const
Gets the retention time for the cache.
Definition: HashCacheDelta.cpp:34
Delta on top of the hash cache.
Definition: HashCacheDelta.h:65
ReadOnlySimpleCache< BasicHashCacheView, BasicHashCacheDelta, state::TimestampedHash > CacheReadOnlyType
Definition: HashCacheTypes.h:68
state::TimestampedHash ValueType
Definition: HashCacheTypes.h:51
Represents an optional pruning boundary.
Definition: PruningBoundary.h:27
Definition: AddressExtractionExtension.cpp:28
Basic delta on top of the hash cache.
Definition: HashCacheDelta.h:33
A mixin for adding size support to a cache.
Definition: CacheMixins.h:36
Custom sub view options.
Definition: HashCacheTypes.h:71
BasicHashCacheDelta(const HashCacheTypes::BaseSetDeltaPointers &hashSets, const HashCacheTypes::Options &options)
Creates a delta around hashSets and options.
Definition: HashCacheDelta.cpp:25
Grouping of all basic cache mixins for a single set.
Definition: CacheMixinAliases.h:30