Make the cache objects used by the Action Tracking Service immutable

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22382 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2010-09-10 11:13:33 +00:00
parent e931342236
commit 1ee65f081a
4 changed files with 25 additions and 15 deletions

View File

@@ -38,12 +38,18 @@ public class ExecutionDetails implements Serializable {
* we don't need to also hold a 2nd copy of it
*/
private transient ExecutionSummary executionSummary;
private NodeRef persistedActionRef;
private String runningOn;
private Date startedAt;
private boolean cancelRequested;
public ExecutionDetails() {}
private final NodeRef persistedActionRef;
private final String runningOn;
private final Date startedAt;
private final boolean cancelRequested;
public ExecutionDetails() {
persistedActionRef = null;
runningOn = null;
startedAt = null;
cancelRequested = false;
}
public ExecutionDetails(ExecutionSummary executionSummary,
NodeRef persistedActionRef, String runningOn, Date startedAt,
@@ -109,7 +115,4 @@ public class ExecutionDetails implements Serializable {
public boolean isCancelRequested() {
return cancelRequested;
}
public void requestCancel() {
cancelRequested = true;
}
}