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

Random

class Random : ServicePeerAllocationStrategy

RoundRobin

class RoundRobin : ServicePeerAllocationStrategy

Functions

pickNext

abstract fun <A> pickNext(service: DistributedServiceHandle, pickFrom: List<A>): A