Package org.redisson.liveobject.resolver
Class UUIDGenerator
java.lang.Object
org.redisson.liveobject.resolver.UUIDGenerator
- All Implemented Interfaces:
RIdResolver<String>
- Author:
- Rui Gu (https://github.com/jackygurui)
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
UUIDGenerator
public UUIDGenerator()
-
-
Method Details
-
resolve
public String 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 interfaceRIdResolver<String>
- Parameters:
value
- the class of the LiveObject.id
- the RId annotation used in the class.idFieldName
- field idcommandAsyncExecutor
- instance- Returns:
- resolved RId field value.
-