X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fnode%2Futils%2Fstream%2FTokenTypes.java;h=e09c3e9eae1e20074d34330e164095bf1f3c4a61;hb=ae6c61499e2c7c76e0406ce397657cd31ddd4d3f;hp=90f0472eb2699322795b9a3575d37dbd1e47ad10;hpb=3ee741416f6f67699392f8d9de9142f828d8981e;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/TokenTypes.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/TokenTypes.java index 90f0472eb2..e09c3e9eae 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/TokenTypes.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/datastore/node/utils/stream/TokenTypes.java @@ -18,9 +18,18 @@ final class TokenTypes { * Original stream version. Uses a per-stream dictionary for strings. QNames are serialized as three strings. */ static final short LITHIUM_VERSION = 1; - - // Tokens supported in LITHIUM_VERSION - static final byte IS_CODE_VALUE = 1; - static final byte IS_STRING_VALUE = 2; - static final byte IS_NULL_VALUE = 3; + /** + * Revised stream version. Unlike {@link #LITHIUM_VERSION}, QNames and QNameModules are using a per-stream + * dictionary, too. + */ + static final short NEON_SR2_VERSION = 2; + /** + * From-scratch designed version shipping in Sodium SR1. + */ + static final short SODIUM_SR1_VERSION = 3; + /** + * Magnesium version. Structurally matches {@link #SODIUM_SR1_VERSION}, but does not allow BigIntegers to be + * present. + */ + static final short MAGNESIUM_VERSION = 4; }