blob: 0d90761a0e836ba572fa7761d860dddf8856eedb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "persistenceprovider.h"
namespace storage::spi {
/**
* Simplified abstract persistence provider class. Implements
* some of the less used functions. Implementors are still encouraged
* to review the full PersistenceProvider class to verify that
* their desired behaviour is implemented.
*/
class AbstractPersistenceProvider : public PersistenceProvider
{
public:
Result initialize() override { return Result(); };
Result removeEntry(const Bucket&, Timestamp) override { return Result(); }
void removeIfFoundAsync(const Bucket&, Timestamp, const DocumentId&, OperationComplete::UP) override;
Result setClusterState(BucketSpace, const ClusterState&) override { return Result(); }
BucketIdListResult getModifiedBuckets(BucketSpace bucketSpace) const override;
};
}
|