aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/flushengine/flush_all_strategy.h
blob: ee998026a332ff339471656134c912005da29db2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "iflushstrategy.h"

namespace proton {

/*
 * Class implementing "flush" everything strategy.  Targets are just
 * sorted on age.
 */
class FlushAllStrategy : public IFlushStrategy
{
public:
    FlushAllStrategy();

    FlushContext::List
    getFlushTargets(const FlushContext::List &targetList,
                    const flushengine::TlsStatsMap&,
                    const flushengine::ActiveFlushStats&) const override;
};

} // namespace proton