made members of AsyncActionsExecutor.ExecutionJob final

Change-Id: I952ebd310eaf6a58cffa2a5e4c84d9991b0cebfd
This commit is contained in:
Axel Uhl committed 2015-12-14 11:07:41 +01:00
1 parent d7f26e9a48
commit 68a1c76529
3 files changed
+13 -4

No files matched your search

@@ -862,6 +862,16 @@ public class RaceMap extends AbsolutePanel implements TimeListener, CompetitorSe
* O(1) time regardless of tail length, compared to fetching the entire tail for all competitors.
*
* TODO bug 3378: This shall produce two calls: one complete GetRaceMapDataAction and another fetching of missing "long tails" which only needs to be carried out if the first call does not deliver everything requested by fromAndToAndOverlap
* The second call of GetRaceMapDataAction is this:
*
* GetRaceMapDataAction getRaceMapDataAction = new GetRaceMapDataAction(sailingService, competitorSelection.getAllCompetitors(), race,
* useNullAsTimePoint() ? null : newTime, fromAndToAndOverlap.getA(), fromAndToAndOverlap.getB(),
* true, // extrapolate
* (settings.isShowSimulationOverlay() ? simulationOverlay.getLegIdentifier() : null));
* asyncActionsExecutor.execute(getRaceMapDataAction, GET_RACE_MAP_DATA_CATEGORY,
* getRaceMapDataCallback(newTime, transitionTimeInMillis, fromAndToAndOverlap.getC(), competitorsToShow, requestID,
* updateMarksAndLinesExceptAdvantageLineInCallback));
*
*/
private GetRaceMapDataAction getRaceMapDataForAllOverlappingAndTipsOfNonOverlapping(
Triple<Map<CompetitorDTO, Date>, Map<CompetitorDTO, Date>, Map<CompetitorDTO, Boolean>> fromAndToAndOverlap,
@@ -19,9 +19,9 @@ import com.sap.sse.common.impl.MillisecondsTimePoint;
*/
public class AsyncActionsExecutor {
private class ExecutionJob<T> implements AsyncCallback<T> {
private AsyncAction<T> action;
private String category;
private AsyncCallback<T> callback;
private final AsyncAction<T> action;
private final String category;
private final AsyncCallback<T> callback;
public ExecutionJob(AsyncAction<T> action, String category, AsyncCallback<T> callback) {
this.action = action;
@@ -51,7 +51,6 @@ public final class MarkedAsyncCallback<T> implements AsyncCallback<T> {
public MarkedAsyncCallback(AsyncCallback<T> callback, String category) {
this.callback = callback;
this.category = category;
if (DebugInfo.isDebugIdEnabled()) {
PendingAjaxCallMarker.incrementPendingAjaxCalls(this.category);
}