blob: e287bdc5252fd341ce2ecd02d20ae51f18e08c45 (
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
25
|
// 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 createBucket(const Bucket&, Context&) override { return Result(); }
Result removeEntry(const Bucket&, Timestamp, Context&) override { return Result(); }
void removeIfFoundAsync(const Bucket&, Timestamp, const DocumentId&, Context&, OperationComplete::UP) override;
Result setClusterState(BucketSpace, const ClusterState&) override { return Result(); }
BucketIdListResult getModifiedBuckets(BucketSpace bucketSpace) const override;
};
}
|