/** * This constructor requires an array of protocols that it is to support, as well as the host application's config * identifier. That identifier is necessary so that all created sessions can be uniquely identified on the network. * * @param protocols An array of known protocols. * @param rpcParams A complete set of network parameters. * @param routingCfgId The config id for message bus routing specs. */ public RPCMessageBus(List<Protocol> protocols, RPCNetworkParams rpcParams, String routingCfgId) { this(new MessageBusParams().addProtocols(protocols), rpcParams, routingCfgId); }
/** * <p>Convenience constructor that proxies {@link #MessageBus(Network, * MessageBusParams)} by adding the given protocols to a default {@link * MessageBusParams} object.</p> * * @param net The network to associate with. * @param protocols An array of protocols to register. */ public MessageBus(Network net, List<Protocol> protocols) { this(net, new MessageBusParams().addProtocols(protocols)); }