Implement locks to hopefully resolve race conditions with I/O - experimental

This commit is contained in:
Luck committed 2016-10-01 19:03:05 +01:00
1 parent b5ece8b5bd
commit 4787361e66
22 files changed
+1159 -878

No files matched your search

@@ -40,18 +40,13 @@ public class TrackManager extends AbstractManager<String, Track> {
.collect(Collectors.toSet());
}
@Override
public void copy(Track from, Track to) {
to.setGroups(from.getGroups());
}
/**
* Makes a new track object
* @param name The name of the track
* @return a new {@link Track} object
*/
@Override
public Track make(String name) {
public Track apply(String name) {
return new Track(name);
}
}