Added more JavaDocs + Typo fix

This commit is contained in:
Steffen Schaefer
2016-06-28 08:43:19 +02:00
parent c3827018fc
commit 66ffc69e62
2 changed files with 7 additions and 1 deletions
@@ -70,6 +70,12 @@ import com.sap.sse.concurrent.NamedReentrantReadWriteLock;
public class RaceLogFixTracker implements TrackingDataLoader {
private static final Logger logger = Logger.getLogger(RaceLogFixTracker.class.getName());
protected final DynamicTrackedRace trackedRace;
/**
* We maintain our own collection that holds the RegattaLogs. The known RegattaLogs should by in sync with the ones that
* can be obtained from the TrackedRace. When stopping, there could be a concurrency issue that leads to a listener
* not being removed. This is prevented by remembering all RegattaLogs to which we attached a listener. So we can be
* sure to not produce a memory leak.
*/
private final Set<RegattaLog> knownRegattaLogs = new HashSet<>();
private final NamedReentrantReadWriteLock loadingFromFixStoreLock;
private final SensorFixStore sensorFixStore;
@@ -39,7 +39,7 @@ public class RaceLogFixTrackerManager implements TrackingDataLoader {
/**
* We maintain our own collection that holds the RaceLogs. The known RaceLogs should by in sync with the ones that
* can be obtained from the TrackedRace. When stopping, there could be a concurrency issue that leads to a listener
* not being removed. This is prevented by remembering all RaceLogs to wich we attached a listener. So we can be
* not being removed. This is prevented by remembering all RaceLogs to which we attached a listener. So we can be
* sure to not produce a memory leak.
*/
private final Set<RaceLog> knownRaceLogs = new HashSet<>();