protobuf更换包名

This commit is contained in:
redkale
2024-08-13 19:57:06 +08:00
parent 3acf6a40ad
commit 9d169c568b
34 changed files with 47 additions and 47 deletions

View File

@@ -85,7 +85,7 @@ public class TestMessageManager extends AbstractService {
manager.createTopic("topic_1", "topic_2").join();
}
// 创建topic
// 删除topic
public void deleteTopic() {
manager.deleteTopic("topic_1", "topic_2").join();
}

View File

@@ -21,7 +21,7 @@ module org.redkale {
exports org.redkale.convert.bson;
exports org.redkale.convert.ext;
exports org.redkale.convert.json;
exports org.redkale.convert.proto;
exports org.redkale.convert.pb;
exports org.redkale.convert.spi;
exports org.redkale.inject;
exports org.redkale.locked;

View File

@@ -33,7 +33,7 @@ import org.redkale.cluster.spi.HttpLocalRpcClient;
import org.redkale.convert.Convert;
import org.redkale.convert.bson.BsonFactory;
import org.redkale.convert.json.*;
import org.redkale.convert.proto.ProtobufFactory;
import org.redkale.convert.pb.ProtobufFactory;
import org.redkale.inject.ResourceAnnotationLoader;
import org.redkale.inject.ResourceEvent;
import org.redkale.inject.ResourceFactory;

View File

@@ -23,7 +23,7 @@ import org.redkale.annotation.ConstructorParameters;
import org.redkale.convert.bson.BsonConvert;
import org.redkale.convert.ext.*;
import org.redkale.convert.json.JsonConvert;
import org.redkale.convert.proto.ProtobufConvert;
import org.redkale.convert.pb.ProtobufConvert;
import org.redkale.convert.spi.ConvertProvider;
import org.redkale.util.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.nio.ByteBuffer;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.nio.ByteBuffer;
import java.util.function.Supplier;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.io.*;
import java.lang.reflect.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Method;
import java.util.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.io.Serializable;
import java.lang.reflect.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import org.redkale.convert.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import org.redkale.convert.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import org.redkale.convert.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import org.redkale.convert.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import java.nio.charset.StandardCharsets;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.io.*;
import org.redkale.convert.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.io.*;
import org.redkale.convert.ConvertException;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.convert.proto;
package org.redkale.convert.pb;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;

View File

@@ -45,7 +45,7 @@ public class RedkaleClassLoader extends URLClassLoader {
"org.redkale.convert.bson",
"org.redkale.convert.ext",
"org.redkale.convert.json",
"org.redkale.convert.proto",
"org.redkale.convert.pb",
"org.redkale.convert.spi",
"org.redkale.inject",
"org.redkale.locked",

View File

@@ -3,10 +3,10 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.test.convert.proto;
package org.redkale.test.convert.pb;
import java.util.*;
import org.redkale.convert.proto.ProtobufConvert;
import org.redkale.convert.pb.ProtobufConvert;
import org.redkale.util.Utility;
/** @author zhangjx */

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.redkale.test.convert.proto;
package org.redkale.test.convert.pb;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.TYPE;
@@ -13,10 +13,10 @@ import java.util.function.*;
import org.junit.jupiter.api.*;
import org.redkale.convert.*;
import org.redkale.convert.json.JsonConvert;
import org.redkale.convert.proto.ProtobufConvert;
import org.redkale.convert.proto.ProtobufObjectDecoder;
import org.redkale.convert.proto.ProtobufObjectEncoder;
import org.redkale.convert.proto.ProtobufReader;
import org.redkale.convert.pb.ProtobufConvert;
import org.redkale.convert.pb.ProtobufObjectDecoder;
import org.redkale.convert.pb.ProtobufObjectEncoder;
import org.redkale.convert.pb.ProtobufReader;
import org.redkale.util.*;
/** @author zhangjx */

View File

@@ -1,6 +1,6 @@
/*
*/
package org.redkale.test.convert.proto;
package org.redkale.test.convert.pb;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.TYPE;
@@ -10,11 +10,11 @@ import java.util.function.*;
import org.junit.jupiter.api.*;
import org.redkale.convert.*;
import org.redkale.convert.json.JsonConvert;
import org.redkale.convert.proto.ProtobufConvert;
import org.redkale.convert.proto.ProtobufFactory;
import org.redkale.convert.proto.ProtobufObjectDecoder;
import org.redkale.convert.proto.ProtobufObjectEncoder;
import org.redkale.convert.proto.ProtobufReader;
import org.redkale.convert.pb.ProtobufConvert;
import org.redkale.convert.pb.ProtobufFactory;
import org.redkale.convert.pb.ProtobufObjectDecoder;
import org.redkale.convert.pb.ProtobufObjectEncoder;
import org.redkale.convert.pb.ProtobufReader;
import org.redkale.util.*;
/** @author zhangjx */

View File

@@ -1,4 +1,4 @@
package org.redkale.test.convert.proto;
package org.redkale.test.convert.pb;
//// Generated by the protocol buffer compiler. DO NOT EDIT!
//// source: src/test/java/org/redkalex/test/protobuf/PSimpleBean.proto

View File

@@ -1,4 +1,4 @@
package org.redkale.test.convert.proto;
package org.redkale.test.convert.pb;
//// Generated by the protocol buffer compiler. DO NOT EDIT!
//// source: src/test/java/org/redkalex/test/protobuf/PTestBean.proto

View File

@@ -1,4 +1,4 @@
package org.redkale.test.convert.proto;
package org.redkale.test.convert.pb;
/// *
// * To change this license header, choose License Headers in Project Properties.
@@ -11,7 +11,7 @@ package org.redkale.test.convert.proto;
// import org.redkale.convert.ConvertColumn;
// import org.redkale.convert.json.JsonConvert;
// import org.redkale.util.Utility;
// import org.redkalex.convert.protobuf.ProtobufConvert;
// import org.redkale.convert.pb.ProtobufConvert;
//
/// **
// *

View File

@@ -1,4 +1,4 @@
package org.redkale.test.convert.proto;
package org.redkale.test.convert.pb;
/// *
// * To change this license header, choose License Headers in Project Properties.
@@ -7,8 +7,8 @@ package org.redkale.test.convert.proto;
// */
// package org.redkalex.test.protobuf;
//
// import org.redkalex.convert.protobuf.ProtobufReader;
// import org.redkalex.convert.protobuf.ProtobufConvert;
// import org.redkale.convert.pb.ProtobufReader;
// import org.redkale.convert.pb.ProtobufConvert;
// import com.google.protobuf.*;
// import java.util.*;
// import org.redkale.convert.ConvertColumn;

View File

@@ -22,12 +22,12 @@ public class TestMessageManager extends AbstractService {
public void initTopic() {
manager.createTopic("topic_1", "topic_2").join();
}
// 创建topic
// 删除topic
public void deleteTopic() {
manager.deleteTopic("topic_1", "topic_2").join();
}
// 查询topic
public void printTopic() {
List<String> topics = manager.queryTopic().join();