Class NetworkMultiplexerProvider
java.lang.Object
com.yahoo.container.jdisc.messagebus.NetworkMultiplexerProvider
Injectable component which provides an
NetworkMultiplexer, creating one if needed,
i.e., the first time this is created in a container--subsequent creations of this will reuse
the underlying network that was created initially. This breaks the DI pattern, but must be done
because the network is a unique resource which cannot exist in several versions simultaneously.- Author:
- jonmv
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkMultiplexerProvider(NetworkMultiplexerHolder net, ContainerMbusConfig mbusConfig) NetworkMultiplexerProvider(NetworkMultiplexerHolder net, ContainerMbusConfig mbusConfig, String identity) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.yahoo.messagebus.network.rpc.RPCNetworkParamsasParameters(ContainerMbusConfig mbusConfig, com.yahoo.cloud.config.SlobroksConfig slobroksConfig, String identity) com.yahoo.messagebus.network.NetworkMultiplexernet()
-
Constructor Details
-
NetworkMultiplexerProvider
@Inject public NetworkMultiplexerProvider(NetworkMultiplexerHolder net, ContainerMbusConfig mbusConfig) -
NetworkMultiplexerProvider
public NetworkMultiplexerProvider(NetworkMultiplexerHolder net, ContainerMbusConfig mbusConfig, String identity)
-
-
Method Details
-
asParameters
public static com.yahoo.messagebus.network.rpc.RPCNetworkParams asParameters(ContainerMbusConfig mbusConfig, com.yahoo.cloud.config.SlobroksConfig slobroksConfig, String identity) -
net
public com.yahoo.messagebus.network.NetworkMultiplexer net()
-