summaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/common/replay_feedtoken_state.cpp
blob: a3a473c9548f6c49841a2093b71cc3168ba92102 (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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "replay_feedtoken_state.h"

namespace proton::feedtoken {

ReplayState::ReplayState(vespalib::SharedOperationThrottler::Token throttler_token)
    : IState(),
      _throttler_token(std::move(throttler_token))
{
}

ReplayState::~ReplayState() = default;

bool
ReplayState::is_replay() const noexcept
{
    return true;
}

void
ReplayState::fail()
{
}

void
ReplayState::setResult(ResultUP, bool)
{
}

const storage::spi::Result&
ReplayState::getResult()
{
    abort();
}

}