blob: acfa44b7be126985aa1a0da729c1b21a17589067 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/persistence/spi/result.h>
namespace proton {
template <typename ResultType>
class IResultHandler {
public:
virtual ~IResultHandler() = default;
virtual void handle(ResultType result) = 0;
};
using IBucketIdListResultHandler = IResultHandler<storage::spi::BucketIdListResult>;
using IBucketInfoResultHandler = IResultHandler<const storage::spi::BucketInfoResult &>;
using IGenericResultHandler = IResultHandler<const storage::spi::Result &>;
} // namespace proton
|