public static class ServicePeerAllocationStrategy.Random extends InMemoryMessagingNetwork.ServicePeerAllocationStrategy
ServicePeerAllocationStrategy.Random, ServicePeerAllocationStrategy.RoundRobin
Constructor and Description |
---|
Random(java.util.SplittableRandom random) |
Random() |
Modifier and Type | Method and Description |
---|---|
java.util.SplittableRandom |
getRandom() |
<A> A |
pickNext(InMemoryMessagingNetwork.DistributedServiceHandle service,
java.util.List<? extends A> pickFrom) |
pickNext
public <A> A pickNext(InMemoryMessagingNetwork.DistributedServiceHandle service, java.util.List<? extends A> pickFrom)
public java.util.SplittableRandom getRandom()