Class KryoNamespaces


  • public final class KryoNamespaces
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static KryoNamespace API
      WARNING: Do not change ordering of registrations! Serial IDs are automatically assigned to types registered via the KryoNamespace API.
      static int API_MAX_SIZE
      KryoNamespace which can serialize API bundle classes.
      static KryoNamespace BASIC
      WARNING: Do not change ordering of registrations! Serial IDs are automatically assigned to types registered via the KryoNamespace API.
      static int BASIC_MAX_SIZE  
      static int BEGIN_USER_CUSTOM_ID
      Kryo registration Id for user custom registration.
      static KryoNamespace MISC
      WARNING: Do not change ordering of registrations! Serial IDs are automatically assigned to types registered via the KryoNamespace API.
      static int MISC_MAX_SIZE
      KryoNamespace which can serialize ONF misc classes.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • BASIC

        public static final KryoNamespace BASIC
        WARNING: Do not change ordering of registrations! Serial IDs are automatically assigned to types registered via the KryoNamespace API. ISSU depends on consistent type IDs for registered serializers across versions. New types must be appended to the registration chain unless an explicit type ID is assigned by calling KryoNamespace.Builder.nextId(int). If existing types need to be removed, use KryoNamespace.Builder.nextId(int) to preserve a consistent ordering of type IDs.
      • MISC_MAX_SIZE

        public static final int MISC_MAX_SIZE
        KryoNamespace which can serialize ONF misc classes.
        See Also:
        Constant Field Values
      • MISC

        public static final KryoNamespace MISC
        WARNING: Do not change ordering of registrations! Serial IDs are automatically assigned to types registered via the KryoNamespace API. ISSU depends on consistent type IDs for registered serializers across versions. New types must be appended to the registration chain unless an explicit type ID is assigned by calling KryoNamespace.Builder.nextId(int). If existing types need to be removed, use KryoNamespace.Builder.nextId(int) to preserve a consistent ordering of type IDs.
      • API_MAX_SIZE

        public static final int API_MAX_SIZE
        KryoNamespace which can serialize API bundle classes.
        See Also:
        Constant Field Values
      • API

        public static final KryoNamespace API
        WARNING: Do not change ordering of registrations! Serial IDs are automatically assigned to types registered via the KryoNamespace API. ISSU depends on consistent type IDs for registered serializers across versions. New types must be appended to the registration chain unless an explicit type ID is assigned by calling KryoNamespace.Builder.nextId(int). If existing types need to be removed, use KryoNamespace.Builder.nextId(int) to preserve a consistent ordering of type IDs.
      • BEGIN_USER_CUSTOM_ID

        public static final int BEGIN_USER_CUSTOM_ID
        Kryo registration Id for user custom registration.
        See Also:
        Constant Field Values