Feature - nameMapper setting added. #3103

pull/3550/head
Nikita Koksharov 4 years ago
parent 5b7c6d2fb8
commit 5c1aba4604

@ -108,7 +108,7 @@ public class RedissonExecutorService implements RScheduledExecutorService {
this.codec = codec;
this.commandExecutor = commandExecutor;
this.connectionManager = commandExecutor.getConnectionManager();
this.name = name;
this.name = commandExecutor.getConnectionManager().getConfig().getNameMapper().map(name);
this.redisson = redisson;
this.queueTransferService = queueTransferService;
this.responses = responses;
@ -357,7 +357,7 @@ public class RedissonExecutorService implements RScheduledExecutorService {
}
private TasksBatchService createBatchService() {
TasksBatchService executorRemoteService = new TasksBatchService(codec, name, commandExecutor, executorId, responses);
TasksBatchService executorRemoteService = new TasksBatchService(codec, getName(), commandExecutor, executorId, responses);
executorRemoteService.setTasksExpirationTimeName(tasksExpirationTimeName);
executorRemoteService.setTerminationTopicName(terminationTopic.getChannelNames().get(0));
executorRemoteService.setTasksCounterName(tasksCounterName);
@ -489,7 +489,7 @@ public class RedissonExecutorService implements RScheduledExecutorService {
@Override
public String getName() {
return name;
return commandExecutor.getConnectionManager().getConfig().getNameMapper().unmap(name);
}
@Override

@ -69,7 +69,7 @@ public abstract class BaseRemoteService {
public BaseRemoteService(Codec codec, String name, CommandAsyncExecutor commandExecutor, String executorId, ConcurrentMap<String, ResponseEntry> responses) {
this.codec = codec;
this.name = name;
this.name = commandExecutor.getConnectionManager().getConfig().getNameMapper().map(name);
this.commandExecutor = commandExecutor;
this.executorId = executorId;
this.responses = responses;

Loading…
Cancel
Save