blob: 5fc168821cc9f3c898880084c9aa67c4fe6e0382 (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/messagebus/message.h>
namespace mbus {
class SimpleMessage : public Message {
private:
string _value;
bool _hasSeqId;
uint64_t _seqId;
public:
SimpleMessage(const string &str);
SimpleMessage(const string &str, bool hasSeqId, uint64_t seqId);
~SimpleMessage();
void setValue(const string &value);
const string &getValue() const;
int getHash() const;
const string & getProtocol() const override;
uint32_t getType() const override;
bool hasSequenceId() const override;
uint64_t getSequenceId() const override;
uint32_t getApproxSize() const override;
uint8_t priority() const override { return 8; }
string toString() const override { return _value; }
};
} // namespace mbus
|