blob: 10289adaf1ad349a48f61f9d8cf0ca1f1e096946 (
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
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "protocolserialization5_2.h"
#include <vespa/messagebus/iprotocol.h>
namespace storage::mbusprot {
class StorageProtocol final : public mbus::IProtocol
{
public:
typedef std::shared_ptr<StorageProtocol> SP;
static mbus::string NAME;
StorageProtocol(const document::DocumentTypeRepo::SP, const documentapi::LoadTypeSet& loadTypes);
~StorageProtocol();
const mbus::string& getName() const override { return NAME; }
mbus::IRoutingPolicy::UP createPolicy(const mbus::string& name, const mbus::string& param) const override;
mbus::Blob encode(const vespalib::Version&, const mbus::Routable&) const override;
mbus::Routable::UP decode(const vespalib::Version&, mbus::BlobRef) const override;
virtual bool requireSequencing() const override { return true; }
private:
ProtocolSerialization5_0 _serializer5_0;
ProtocolSerialization5_1 _serializer5_1;
ProtocolSerialization5_2 _serializer5_2;
};
}
|