Package org.redisson.misc
Class RedissonObjectFactory
- java.lang.Object
-
- org.redisson.misc.RedissonObjectFactory
-
public class RedissonObjectFactory extends Object
- Author:
- Rui Gu (https://github.com/jackygurui)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RedissonObjectFactory.RedissonObjectBuilder
-
Constructor Summary
Constructors Constructor Description RedissonObjectFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends RObject,K extends Codec>
TcreateRObject(RedissonClient redisson, Class<T> expectedType, String name, K codec)
static <T> T
fromReference(RedissonClient redisson, RedissonReference rr)
static <T> T
fromReference(RedissonReactiveClient redisson, RedissonReference rr)
static RedissonReference
toReference(Config config, Object object)
static void
warmUp()
-
-
-
Method Detail
-
fromReference
public static <T> T fromReference(RedissonClient redisson, RedissonReference rr) throws Exception
- Throws:
Exception
-
fromReference
public static <T> T fromReference(RedissonReactiveClient redisson, RedissonReference rr) throws Exception
- Throws:
Exception
-
toReference
public static RedissonReference toReference(Config config, Object object)
-
createRObject
public static <T extends RObject,K extends Codec> T createRObject(RedissonClient redisson, Class<T> expectedType, String name, K codec) throws Exception
- Throws:
Exception
-
warmUp
public static void warmUp()
-
-