blob: 897ff75c7b33c5c760ed3ed1e7f9ff01495146ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. 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
|