aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/vespa/config/common/cancelhandler.h
blob: 694f0185e7c3383d121a10856702c7d087aca6d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

namespace config {

class ConfigSubscription;

struct CancelHandler
{
    /**
     * Cancels this subscription. Once this operation is done, the handler
     * should have no knowledge of the subscription representing this id.
     *
     * @param subscription ConfigSubscription to cancel
     */
    virtual void unsubscribe(const ConfigSubscription & subscription) = 0;

    virtual ~CancelHandler() = default;
};

}