public void failAllOutstandingRequestsWithNotCurrentLeaderException() { NotCurrentLeaderException ex = new NotCurrentLeaderException("This lock service has been closed"); heldLocksById.values().forEach(result -> result.failIfNotCompleted(ex)); }
public void failAllOutstandingRequestsWithNotCurrentLeaderException() { NotCurrentLeaderException ex = new NotCurrentLeaderException("This lock service has been closed"); heldLocksById.values().forEach(result -> result.failIfNotCompleted(ex)); }