Class LongGenerator

java.lang.Object
org.redisson.liveobject.resolver.LongGenerator
All Implemented Interfaces:
RIdResolver<Long>

public class LongGenerator extends Object implements RIdResolver<Long>
Author:
Rui Gu (https://github.com/jackygurui)
  • Field Details

  • Constructor Details

    • LongGenerator

      public LongGenerator()
  • Method Details

    • resolve

      public Long resolve(Class<?> value, RId id, String idFieldName, CommandAsyncExecutor commandAsyncExecutor)
      Description copied from interface: RIdResolver
      RLiveObjectService instantiate the class and invokes this method to get a value used as the value for the field with RId annotation.
      Specified by:
      resolve in interface RIdResolver<Long>
      Parameters:
      value - the class of the LiveObject.
      id - the RId annotation used in the class.
      idFieldName - field id
      commandAsyncExecutor - instance
      Returns:
      resolved RId field value.