Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (InetAddress stationKey : c.db.keySet())
- {
- HashMap<Integer,ConnectionInfo> station = c.db.get(stationKey);
- for(Integer connectionKey : station.keySet())
- {
- ConnectionInfo conInfo = station.get(connectionKey);
- if (( System.currentTimeMillis() - conInfo.lastUpdate) > Configuration.CLEAN_TIME)
- {
- log("Removing:"+conInfo.print());
- station.remove(conInfo.conKey);
- //break;
- }
- }
- }
Add Comment
Please, Sign In to add comment