mirror of
https://github.com/corda/corda.git
synced 2025-06-19 15:43:52 +00:00
ENT-1618: added support for RPC client in HA mode(automatic failover) (#706)
* ENT-1618: added support for RPC client in HA mode(automatic failover) * RPCClient: renamed variables to avoid confusion about clustering
This commit is contained in:
@ -104,5 +104,19 @@ class ArtemisTcpTransport {
|
||||
}
|
||||
return TransportConfiguration(factoryName, options)
|
||||
}
|
||||
|
||||
/** Create as list of [TransportConfiguration]. **/
|
||||
fun tcpTransportsFromList(
|
||||
direction: ConnectionDirection,
|
||||
hostAndPortList: List<NetworkHostAndPort>,
|
||||
config: SSLConfiguration?,
|
||||
enableSSL: Boolean = true): List<TransportConfiguration>{
|
||||
val tcpTransports = ArrayList<TransportConfiguration>(hostAndPortList.size)
|
||||
hostAndPortList.forEach {
|
||||
tcpTransports.add(tcpTransport(direction, it, config, enableSSL))
|
||||
}
|
||||
|
||||
return tcpTransports
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user