public class LongGenerator extends Object implements RIdResolver<Long>
Modifier and Type | Field and Description |
---|---|
static LongGenerator |
INSTANCE |
Constructor and Description |
---|
LongGenerator() |
Modifier and Type | Method and Description |
---|---|
Long |
resolve(Class<?> value,
RId id,
String idFieldName,
CommandAsyncExecutor commandAsyncExecutor)
RLiveObjectService instantiate the class and invokes this method to get
a value used as the value for the field with RId annotation.
|
public static final LongGenerator INSTANCE
public Long resolve(Class<?> value, RId id, String idFieldName, CommandAsyncExecutor commandAsyncExecutor)
RIdResolver
resolve
in interface RIdResolver<Long>
value
- the class of the LiveObject.id
- the RId annotation used in the class.idFieldName
- field idcommandAsyncExecutor
- instanceCopyright © 2014–2021 Redisson. All rights reserved.