Redisson and RedissonReactive can be extends.

pull/566/head
lefay 9 years ago
parent 037f996512
commit e7a3098f7d

@ -89,17 +89,17 @@ import io.netty.util.internal.PlatformDependent;
*/
public class Redisson implements RedissonClient {
private final EvictionScheduler evictionScheduler;
private final CommandExecutor commandExecutor;
private final ConnectionManager connectionManager;
protected final EvictionScheduler evictionScheduler;
protected final CommandExecutor commandExecutor;
protected final ConnectionManager connectionManager;
private final Map<Class, Class> liveObjectClassCache
protected final Map<Class, Class> liveObjectClassCache
= PlatformDependent.<Class, Class>newConcurrentHashMap();
private final CodecProvider liveObjectDefaultCodecProvider = new DefaultCodecProvider();
private final ResolverProvider liveObjectDefaultResolverProvider = new DefaultResolverProvider();
private final Config config;
protected final CodecProvider liveObjectDefaultCodecProvider = new DefaultCodecProvider();
protected final ResolverProvider liveObjectDefaultResolverProvider = new DefaultResolverProvider();
protected final Config config;
private final UUID id = UUID.randomUUID();
protected final UUID id = UUID.randomUUID();
Redisson(Config config) {
this.config = config;

@ -79,12 +79,12 @@ import io.netty.util.concurrent.Future;
*/
public class RedissonReactive implements RedissonReactiveClient {
private final EvictionScheduler evictionScheduler;
private final CommandReactiveService commandExecutor;
private final ConnectionManager connectionManager;
private final Config config;
protected final EvictionScheduler evictionScheduler;
protected final CommandReactiveService commandExecutor;
protected final ConnectionManager connectionManager;
protected final Config config;
RedissonReactive(Config config) {
protected RedissonReactive(Config config) {
this.config = config;
Config configCopy = new Config(config);

Loading…
Cancel
Save