summaryrefslogtreecommitdiffstats
path: root/storageapi
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-09-29 16:36:59 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-09-29 16:44:36 +0200
commitdb0b5402657e33a7737ad7490473a7fd12850de7 (patch)
tree783cb5b9b3d22f32d6b3574be00c0c4356476caf /storageapi
parentf4f8d93f3be2a2b91ba0db4034db2a1811f438fb (diff)
Protocols tells if they require sequencing of messages. If not messages might be reordered for efficiency.
Diffstat (limited to 'storageapi')
-rw-r--r--storageapi/src/vespa/storageapi/mbusprot/storageprotocol.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/storageapi/src/vespa/storageapi/mbusprot/storageprotocol.h b/storageapi/src/vespa/storageapi/mbusprot/storageprotocol.h
index 699f1c4c239..10289adaf1a 100644
--- a/storageapi/src/vespa/storageapi/mbusprot/storageprotocol.h
+++ b/storageapi/src/vespa/storageapi/mbusprot/storageprotocol.h
@@ -6,7 +6,7 @@
namespace storage::mbusprot {
-class StorageProtocol : public mbus::IProtocol
+class StorageProtocol final : public mbus::IProtocol
{
public:
typedef std::shared_ptr<StorageProtocol> SP;
@@ -20,7 +20,7 @@ public:
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;