Annotation Type RObjectField


@Retention(RUNTIME) @Target(FIELD) public @interface RObjectField
By default namingScheme and/or codec parameters specified in REntity are applied for each Live Object field. This annotation allows to specify custom namingScheme and/or codec parameters for any Live Object field except that marked with RId.
Author:
Rui Gu (https://github.com/jackygurui)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends Codec>
    (Optional) Live Object state codec.
    Class<? extends NamingScheme>
    (Optional) Live Object naming scheme.
  • Element Details

    • namingScheme

      Class<? extends NamingScheme> namingScheme
      (Optional) Live Object naming scheme. Defines how to assign key names for each instance of this class. Used to create a reference to an existing Live Object and materialising a new one in redis. Defaults to DefaultNamingScheme implementation.
      Returns:
      scheme
      Default:
      org.redisson.liveobject.resolver.DefaultNamingScheme.class
    • codec

      Class<? extends Codec> codec
      (Optional) Live Object state codec. null means to use codec specified in Redisson configuration
      Returns:
      codec
      Default:
      org.redisson.api.annotation.RObjectField.DEFAULT.class