@Test public void returnsProperServiceForEachClient() { assertThat(namespaces.get(CLIENT_A)).isEqualTo(servicesA); assertThat(namespaces.get(CLIENT_B)).isEqualTo(servicesB); }
public TimeLockServices get(String namespace) { return services.computeIfAbsent(namespace, this::createNewClient); }
TimelockNamespaces { public TimeLockServices get(String namespace) { return services.computeIfAbsent(namespace, this::createNewClient); } }
TimelockNamespaces { public TimeLockServices get(String namespace) { return services.computeIfAbsent(namespace, this::createNewClient); } TimelockNamespaces(
            MetricsManager metrics,
            Function<String, TimeLockServices> factory,
            Supplier<Integer> maxNumberOfClients); }
TimelockNamespaces { public TimeLockServices get(String namespace) { return services.computeIfAbsent(namespace, this::createNewClient); } TimelockNamespaces(
            MetricsManager metrics,
            Function<String, TimeLockServices> factory,
            Supplier<Integer> maxNumberOfClients); TimeLockServices get(String namespace); Set<Client> getActiveClients(); int getNumberOfActiveClients(); int getMaxNumberOfClients(); }
TimelockNamespaces { public TimeLockServices get(String namespace) { return services.computeIfAbsent(namespace, this::createNewClient); } TimelockNamespaces(
            MetricsManager metrics,
            Function<String, TimeLockServices> factory,
            Supplier<Integer> maxNumberOfClients); TimeLockServices get(String namespace); Set<Client> getActiveClients(); int getNumberOfActiveClients(); int getMaxNumberOfClients();  }