blob: 65132f7e3c8e9648dfbe48076fd273006dc2337e (
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
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "protocolserialization7.h"
#include <vespa/messagebus/iprotocol.h>
namespace storage::mbusprot {
class StorageProtocol final : public mbus::IProtocol
{
public:
using SP = std::shared_ptr<StorageProtocol>;
static mbus::string NAME;
explicit StorageProtocol(const std::shared_ptr<const document::DocumentTypeRepo>);
~StorageProtocol() override;
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;
private:
ProtocolSerialization7 _serializer7_0;
};
}
|