blob: 64cef487db1bb957c237f6af69718eb2b2d11064 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright Yahoo. 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;
};
}
|