@Test public void checkingTheLeasesWhenThereAreNoLeases() { leaseState.checkLeases(); verifyNoMoreInteractions(clientConnectionCloser); }
void checkLeases() { LOGGER.debug("Checking leases"); long now = timeSource.nanoTime(); for (ClientDescriptor clientDescriptor : leases.keySet()) { checkLease(clientDescriptor, now); } }
LeaseState implements StateDumpable { void checkLeases() { LOGGER.debug("Checking leases"); long now = timeSource.nanoTime(); for (ClientDescriptor clientDescriptor : leases.keySet()) { checkLease(clientDescriptor, now); } } }
LeaseState implements StateDumpable { void checkLeases() { LOGGER.debug("Checking leases"); long now = timeSource.nanoTime(); for (ClientDescriptor clientDescriptor : leases.keySet()) { checkLease(clientDescriptor, now); } } LeaseState(TimeSource timeSource, ClientConnectionCloser clientConnectionCloser); }
LeaseState implements StateDumpable { void checkLeases() { LOGGER.debug("Checking leases"); long now = timeSource.nanoTime(); for (ClientDescriptor clientDescriptor : leases.keySet()) { checkLease(clientDescriptor, now); } } LeaseState(TimeSource timeSource, ClientConnectionCloser clientConnectionCloser); void disconnected(ClientDescriptor clientDescriptor); void reconnecting(ClientDescriptor clientDescriptor); void reconnected(ClientDescriptor clientDescriptor, long leaseLength); boolean acquireLease(ClientDescriptor clientDescriptor, long leaseLength); @Override void addStateTo(StateDumpCollector stateDumpCollector); }
LeaseState implements StateDumpable { void checkLeases() { LOGGER.debug("Checking leases"); long now = timeSource.nanoTime(); for (ClientDescriptor clientDescriptor : leases.keySet()) { checkLease(clientDescriptor, now); } } LeaseState(TimeSource timeSource, ClientConnectionCloser clientConnectionCloser); void disconnected(ClientDescriptor clientDescriptor); void reconnecting(ClientDescriptor clientDescriptor); void reconnected(ClientDescriptor clientDescriptor, long leaseLength); boolean acquireLease(ClientDescriptor clientDescriptor, long leaseLength); @Override void addStateTo(StateDumpCollector stateDumpCollector);  }