|
|
@ -199,9 +199,11 @@ public class AccessorInterceptor {
|
|
|
|
NamingScheme namingScheme = connectionManager.getCommandExecutor().getObjectBuilder().getNamingScheme(me.getClass().getSuperclass());
|
|
|
|
NamingScheme namingScheme = connectionManager.getCommandExecutor().getObjectBuilder().getNamingScheme(me.getClass().getSuperclass());
|
|
|
|
String indexName = namingScheme.getIndexName(me.getClass().getSuperclass(), field.getName());
|
|
|
|
String indexName = namingScheme.getIndexName(me.getClass().getSuperclass(), field.getName());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean skipExecution = false;
|
|
|
|
CommandBatchService ce;
|
|
|
|
CommandBatchService ce;
|
|
|
|
if (commandExecutor instanceof CommandBatchService) {
|
|
|
|
if (commandExecutor instanceof CommandBatchService) {
|
|
|
|
ce = (CommandBatchService) commandExecutor;
|
|
|
|
ce = (CommandBatchService) commandExecutor;
|
|
|
|
|
|
|
|
skipExecution = true;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
ce = new CommandBatchService(connectionManager);
|
|
|
|
ce = new CommandBatchService(connectionManager);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -213,9 +215,12 @@ public class AccessorInterceptor {
|
|
|
|
RMultimapAsync<Object, Object> map = new RedissonSetMultimap<>(namingScheme.getCodec(), ce, indexName);
|
|
|
|
RMultimapAsync<Object, Object> map = new RedissonSetMultimap<>(namingScheme.getCodec(), ce, indexName);
|
|
|
|
map.putAsync(arg, ((RLiveObject) me).getLiveObjectId());
|
|
|
|
map.putAsync(arg, ((RLiveObject) me).getLiveObjectId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!skipExecution) {
|
|
|
|
ce.execute();
|
|
|
|
ce.execute();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String getFieldName(Method method) {
|
|
|
|
private String getFieldName(Method method) {
|
|
|
|
String name = method.getName();
|
|
|
|
String name = method.getName();
|
|
|
|