corda / net.corda.testing.node / InMemoryMessagingNetwork / ServicePeerAllocationStrategy
ServicePeerAllocationStrategy
@DoNotImplement sealed class ServicePeerAllocationStrategy
How traffic is allocated in the case where multiple nodes share a single identity, which happens for notaries
in a cluster. You don't normally ever need to change this: it is mostly useful for testing notary implementations.
Types
|
class Random : ServicePeerAllocationStrategy |
|
class RoundRobin : ServicePeerAllocationStrategy |
Functions
|
abstract fun <A> pickNext(service: DistributedServiceHandle, pickFrom: List<A>): A |