Move Lithium tokens to their own class
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / datastore / node / utils / stream / TokenTypes.java
index 90f0472eb2699322795b9a3575d37dbd1e47ad10..8fc7d6d55bbcf6feb9343cd83301a34fc097ebba 100644 (file)
@@ -18,9 +18,17 @@ 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;
+    /**
+     * Revised stream version. Unlike {@link #LITHIUM_VERSION}, QNames and QNameModules are using a per-stream
+     * dictionary, too.
+     */
+    static final short NEON_SR2_VERSION = 2;
 
-    // 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;
+    // Tokens supported in NEON_SR2_VERSION
+    static final byte IS_QNAME_CODE = 4;
+    static final byte IS_QNAME_VALUE = 5;
+    static final byte IS_AUGMENT_CODE = 6;
+    static final byte IS_AUGMENT_VALUE = 7;
+    static final byte IS_MODULE_CODE = 8;
+    static final byte IS_MODULE_VALUE = 9;
 }