|
|
@ -246,7 +246,7 @@ public class RedissonConnection extends AbstractRedisConnection {
|
|
|
|
return new ScanCursor<byte[]>(0, options) {
|
|
|
|
return new ScanCursor<byte[]>(0, options) {
|
|
|
|
|
|
|
|
|
|
|
|
private RedisClient client;
|
|
|
|
private RedisClient client;
|
|
|
|
private Iterator<MasterSlaveEntry> entries = redisson.getConnectionManager().getEntrySet().iterator();
|
|
|
|
private Iterator<MasterSlaveEntry> entries = executorService.getConnectionManager().getEntrySet().iterator();
|
|
|
|
private MasterSlaveEntry entry = entries.next();
|
|
|
|
private MasterSlaveEntry entry = entries.next();
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -1611,7 +1611,7 @@ public class RedissonConnection extends AbstractRedisConnection {
|
|
|
|
public void subscribe(MessageListener listener, byte[]... channels) {
|
|
|
|
public void subscribe(MessageListener listener, byte[]... channels) {
|
|
|
|
checkSubscription();
|
|
|
|
checkSubscription();
|
|
|
|
|
|
|
|
|
|
|
|
subscription = new RedissonSubscription(redisson.getCommandExecutor(), redisson.getConnectionManager().getSubscribeService(), listener);
|
|
|
|
subscription = new RedissonSubscription(redisson.getCommandExecutor(), listener);
|
|
|
|
subscription.subscribe(channels);
|
|
|
|
subscription.subscribe(channels);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1632,7 +1632,7 @@ public class RedissonConnection extends AbstractRedisConnection {
|
|
|
|
public void pSubscribe(MessageListener listener, byte[]... patterns) {
|
|
|
|
public void pSubscribe(MessageListener listener, byte[]... patterns) {
|
|
|
|
checkSubscription();
|
|
|
|
checkSubscription();
|
|
|
|
|
|
|
|
|
|
|
|
subscription = new RedissonSubscription(redisson.getCommandExecutor(), redisson.getConnectionManager().getSubscribeService(), listener);
|
|
|
|
subscription = new RedissonSubscription(redisson.getCommandExecutor(), listener);
|
|
|
|
subscription.pSubscribe(patterns);
|
|
|
|
subscription.pSubscribe(patterns);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|