blob: 44aa17f6ce82142ab99cfce033e5f35ef9422adb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
namespace search {
/*
* Interface class for checking if current flush task should be stopped.
* TODO: Add methods to register transient memory usage during flush.
*/
class IFlushToken {
public:
virtual ~IFlushToken() = default;
virtual bool stop_requested() const noexcept = 0;
};
}
|