public static class InMemoryMessagingNetwork.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.
Modifier and Type | Class and Description |
---|---|
static class |
ServicePeerAllocationStrategy.Random |
static class |
ServicePeerAllocationStrategy.RoundRobin |
Modifier and Type | Method and Description |
---|---|
<A> A |
pickNext(InMemoryMessagingNetwork.DistributedServiceHandle service,
java.util.List<? extends A> pickFrom) |
public <A> A pickNext(InMemoryMessagingNetwork.DistributedServiceHandle service, java.util.List<? extends A> pickFrom)