public void finished(String key, ImmutableMap data) { recentlyFinished = recentlyFinished.plus(wrapInMap(active.get(key), data)); active = active.minus(key); removed++; if (recentlyFinished.size() > 10) recentlyFinished.minus(recentlyFinished.size() - 1); }