Guest User

Untitled

a guest
Apr 20th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1.             for (InetAddress stationKey : c.db.keySet())
  2.             {
  3.                 HashMap<Integer,ConnectionInfo> station = c.db.get(stationKey);
  4.                
  5.                 for(Integer connectionKey : station.keySet())
  6.                 {
  7.                     ConnectionInfo conInfo = station.get(connectionKey);
  8.                    
  9.                     if (( System.currentTimeMillis() - conInfo.lastUpdate) > Configuration.CLEAN_TIME)
  10.                     {
  11.                         log("Removing:"+conInfo.print());
  12.                         station.remove(conInfo.conKey);
  13.                         //break;
  14.                     }
  15.                 }
  16.             }
Add Comment
Please, Sign In to add comment