private static SharedMessageBus createSharedMessageBus(NetworkMultiplexer net,
                                                           ContainerMbusConfig mbusConfig,
                                                           MessagebusConfig messagebusConfig,
                                                           Protocol protocol) {
        MessageBusParams mbusParams = new MessageBusParams().addProtocol(protocol);

        mbusParams.setMaxPendingCount(mbusConfig.maxpendingcount());

        MessageBus bus = new MessageBus(net, mbusParams);
        new ConfigAgent(messagebusConfig, bus); // Configure the wrapped MessageBus with a routing table.
        return new SharedMessageBus(bus);
    }
Class to encapsulate access to slobrok sessions.

@author Steinar Knutsen
@author Einar Rosenvinge
container-messagebus/src/main/java/com/yahoo/container/jdisc/messagebus/SessionCache.java