/** * Deletes topologies from history older than mins minutes. * * @param mins the number of mins for old topologies */ private void cleanTopologyHistory(int mins) { int cutoffAgeSecs = Time.currentTimeSecs() - (mins * 60); synchronized (topologyHistoryLock) { LocalState state = topologyHistoryState; state.filterOldTopologies(cutoffAgeSecs); } }