Class Marshalling

java.lang.Object
org.keycloak.marshalling.Marshalling

public final class Marshalling extends Object
Ids of the protostream type.

Read careful the following warning to ensure compatibility when updating schemas.

WARNING! IDs lower or equal than 65535 are reserved for internal Inifinispan classes and cannot be used. WARNING! ID defined in this class must be unique. If one type is removed, its ID must not be reused. You have been warned! The ID identifies the message, and it is stored and used to save space. WARNING! The field IDs cannot be reused as well for the same reason. WARNING! Primitive types cannot be null in proto3 syntax (Integer, String). Take that in consideration.

Be Aware of the following default in Proto3 syntax! For strings, the default value is the empty string. For bytes, the default value is empty bytes. For bools, the default value is false. For numeric types, the default value is zero. For enums, the default value is the first defined enum value, which must be 0. For message fields, the field is not set. (null)

Docs: Language Guide (proto 3)

  • Field Details

  • Method Details

    • getSchemas

      public static List<org.infinispan.protostream.SerializationContextInitializer> getSchemas()
    • setSchemas

      public static void setSchemas(List<org.infinispan.protostream.SerializationContextInitializer> schemas)
    • configure

      public static void configure(org.infinispan.configuration.global.GlobalConfigurationBuilder builder)
    • configure

      public static void configure(org.infinispan.client.hotrod.configuration.ConfigurationBuilder builder)
    • protoEntity

      public static String protoEntity(Class<?> clazz)