public class UUIDGenerator extends Object implements RIdResolver<String>
Modifier and Type | Field and Description |
---|---|
static UUIDGenerator |
INSTANCE |
Constructor and Description |
---|
UUIDGenerator() |
Modifier and Type | Method and Description |
---|---|
String |
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 UUIDGenerator INSTANCE
public String resolve(Class<?> value, RId id, String idFieldName, CommandAsyncExecutor commandAsyncExecutor)
RIdResolver
resolve
in interface RIdResolver<String>
value
- the class of the LiveObject.id
- the RId annotation used in the class.idFieldName
- field idcommandAsyncExecutor
- instanceCopyright © 2014–2020 Redisson. All rights reserved.