Package org.redisson.liveobject.core
Class RedissonObjectBuilder
- java.lang.Object
-
- org.redisson.liveobject.core.RedissonObjectBuilder
-
public class RedissonObjectBuilder extends Object
- Author:
- Rui Gu, Nikita Koksharov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RedissonObjectBuilder.CodecMethodRef
static class
RedissonObjectBuilder.ReferenceType
-
Constructor Summary
Constructors Constructor Description RedissonObjectBuilder(RedissonClient redisson)
RedissonObjectBuilder(RedissonReactiveClient redissonReactive)
RedissonObjectBuilder(RedissonRxClient redissonRx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RObject
createObject(Object id, Class<?> clazz, Class<?> fieldType, String fieldName)
Object
fromReference(RedissonReference rr, RedissonObjectBuilder.ReferenceType type)
NamingScheme
getNamingScheme(Class<?> entityClass)
NamingScheme
getNamingScheme(Class<?> rEntity, Codec c)
void
store(RObject ar, String fieldName, RMap<String,Object> liveMap)
void
storeAsync(RObject ar, String fieldName, RMap<String,Object> liveMap)
RedissonReference
toReference(Object object)
Object
tryHandleReference(Object o, RedissonObjectBuilder.ReferenceType type)
-
-
-
Constructor Detail
-
RedissonObjectBuilder
public RedissonObjectBuilder(RedissonClient redisson)
-
RedissonObjectBuilder
public RedissonObjectBuilder(RedissonReactiveClient redissonReactive)
-
RedissonObjectBuilder
public RedissonObjectBuilder(RedissonRxClient redissonRx)
-
-
Method Detail
-
createObject
public RObject createObject(Object id, Class<?> clazz, Class<?> fieldType, String fieldName)
-
getNamingScheme
public NamingScheme getNamingScheme(Class<?> entityClass)
-
getNamingScheme
public NamingScheme getNamingScheme(Class<?> rEntity, Codec c)
-
fromReference
public Object fromReference(RedissonReference rr, RedissonObjectBuilder.ReferenceType type) throws ReflectiveOperationException
- Throws:
ReflectiveOperationException
-
toReference
public RedissonReference toReference(Object object)
-
tryHandleReference
public Object tryHandleReference(Object o, RedissonObjectBuilder.ReferenceType type) throws ReflectiveOperationException
- Throws:
ReflectiveOperationException
-
-