InMemoryMessagingNetwork.ServicePeerAllocationStrategy
Keywords: net.corda.testing.node.InMemoryMessagingNetwork.ServicePeerAllocationStrategy class
Date: 2023-09-18

net.corda.testing.node

## Class InMemoryMessagingNetwork.ServicePeerAllocationStrategy

- net.corda.testing.node.InMemoryMessagingNetwork.ServicePeerAllocationStrategy

- Enclosing class:
    InMemoryMessagingNetwork

      @DoNotImplement
      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.

- - ### Method Detail

    - #### pickNext

          public <A> A pickNext(@NotNull
                                net.corda.testing.node.InMemoryMessagingNetwork.DistributedServiceHandle service,
                                @NotNull
                                java.util.List<? extends A> pickFrom)