blob: 011215ac500c4e8740f5924c9bf1b060621c02dd (
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 Vespa.ai. 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;
};
}
|