summaryrefslogtreecommitdiffstats
path: root/documentapi/src/vespa/documentapi/messagebus/messages/testandsetmessage.h
blob: e48099c1fdcbed70ad987d6c76abfe1e145385a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// @author Vegard Sjonfjell
#pragma once

#include "documentmessage.h"
#include "testandsetcondition.h"

namespace documentapi {

class TestAndSetMessage : public DocumentMessage {
private:
    TestAndSetCondition _condition;

public:
    ~TestAndSetMessage();
    void setCondition(const TestAndSetCondition & condition) { _condition = condition; }
    const TestAndSetCondition & getCondition() const { return _condition; }
};

}