public int getLocalEstimate() { if (localEstimate != -1) { return localEstimate; } int totalSpeed = 0; synchronized (connections) { for (OutgoingSpeedCheckConnection c : connections) { totalSpeed += c.getLocalEstimate(); } } return totalSpeed; }