aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/i_disk_mem_usage_notifier.h
blob: 0abcfd6dc1b8415470dda3d3a880c10b0c74894d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

namespace proton {

class IDiskMemUsageListener;

/**
 * Interface used to request notification when disk/memory usage state
 * has changed.
 */
class IDiskMemUsageNotifier
{
public:
    virtual ~IDiskMemUsageNotifier() = default;
    virtual void addDiskMemUsageListener(IDiskMemUsageListener *listener) = 0;
    virtual void removeDiskMemUsageListener(IDiskMemUsageListener *listener) = 0;
};

} // namespace proton