aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus/src/vespa/messagebus/network/rpcnetworkparams.cpp
blob: 482a46b2564c505d7c9207f1826029120771b0e4 (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
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "rpcnetworkparams.h"

namespace mbus {

RPCNetworkParams::RPCNetworkParams()
    : RPCNetworkParams("admin/slobrok.0")
{ }

RPCNetworkParams::RPCNetworkParams(config::ConfigUri configUri) :
    _identity(Identity("")),
    _slobrokConfig(std::move(configUri)),
    _listenPort(0),
    _maxInputBufferSize(256*1024),
    _maxOutputBufferSize(256*1024),
    _numThreads(1),
    _optimizeFor(OptimizeFor::LATENCY),
    _dispatchOnEncode(true),
    _dispatchOnDecode(false),
    _connectionExpireSecs(600),
    _compressionConfig(CompressionConfig::LZ4, 6, 90, 1024)
{ }

RPCNetworkParams::~RPCNetworkParams() = default;

}