3 Replies Latest reply on Mar 6, 2008 7:11 PM by Brian Stansberry

    optionoverrides and DataVersion

    Nolan Johnson Newbie

      It's possible that optimistic locking and using OptionOverrides to tweak optimistic locking to do some things that we want to do. However, it seems like the fact that the way that the DataVersion is set for an attribute (using global OptionOverrides) is not thread safe at all. From the documentation:

      E.g., to override the default node versioning used with optimistic locking:
       DataVersion v = new MyCustomDataVersion();
       Node ch = cache.getRoot().addChild(Fqn.fromString("/a/b/c"));

      This seems completely useless except for single-threaded applications. Am I wrong?