@Test public void canDynamicallyIncreaseMaxAllowedClients() { createMaximumNumberOfClients(); when(maxNumberOfClientsSupplier.get()).thenReturn(DEFAULT_MAX_NUMBER_OF_CLIENTS + 1); namespaces.get(uniqueClient()); }
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();  }