aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/i_disk_mem_usage_listener.h
blob: 4c4923c0cd0407623191fd7e04269000104255e8 (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 "disk_mem_usage_state.h"

namespace proton {

/**
 * Interface used to receive notification when disk/memory usage state
 * has changed.
 */
class IDiskMemUsageListener
{
public:
    virtual ~IDiskMemUsageListener() {}
    virtual void notifyDiskMemUsage(DiskMemUsageState state) = 0;
};

} // namespace proton