注解,javaScript脚本分包

V0.5.x
huangwenlong 2022-12-14 21:30:32 +08:00
parent fabdb00c4b
commit 3bbb9004cf
3 changed files with 14 additions and 6 deletions

View File

@ -7,7 +7,7 @@ import reactor.core.publisher.Flux;
import java.util.function.Function;
/**
*
*
*
* @author huangwenl
* @date 2022-10-13

View File

@ -83,6 +83,9 @@ public class TcpServerVerticle extends AbstractVerticle {
}
/**
* TCP
*/
private void initTcpServer() {
int instance = Math.max(2, config.getInstance());
List<NetServer> instances = new ArrayList<>(instance);
@ -127,6 +130,9 @@ public class TcpServerVerticle extends AbstractVerticle {
}
}
/**
*
*/
public void keepClientTask() {
scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(2);
@ -236,7 +242,7 @@ public class TcpServerVerticle extends AbstractVerticle {
}
/**
*
* ,
*/
private void clientDisconnect(String deviceName) {
VertxTcpClient remove = clientMap.remove(deviceName);

View File

@ -1,4 +1,6 @@
parser.delimited("\r\n")
.handler(function(buffer){
parser.result(parser.newBuffer().toString("UTF-8")).complete();
});
this.payloadParser = function (parser) {
parser.delimited("\r\n")
.handler(function(buffer){
parser.result(buffer.toString("UTF-8")).complete();
});
}