This commit is contained in:
parent
0df36ea686
commit
88bdd43e72
@ -37,8 +37,8 @@ import java.util.Objects;
|
||||
* @since 2021-02-08 22:12.
|
||||
*/
|
||||
public final class SerializerHolder {
|
||||
private volatile static Serializer serializer = null;
|
||||
private static final Logger logger = LoggerFactory.getLogger(SerializerHolder.class);
|
||||
private volatile static Serializer serializer = null;
|
||||
|
||||
private SerializerHolder() {
|
||||
}
|
||||
|
@ -28,17 +28,9 @@ import com.caucho.hessian.io.HessianInput;
|
||||
import com.caucho.hessian.io.HessianOutput;
|
||||
import io.github.ehlxr.did.common.Try;
|
||||
import io.github.ehlxr.did.serializer.Serializer;
|
||||
import io.protostuff.LinkedBuffer;
|
||||
import io.protostuff.ProtostuffIOUtil;
|
||||
import io.protostuff.Schema;
|
||||
import io.protostuff.runtime.RuntimeSchema;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.ObjectInputStream;
|
||||
import java.io.ObjectOutputStream;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
/**
|
||||
* @author ehlxr
|
||||
|
@ -29,7 +29,6 @@ import io.github.ehlxr.did.adapter.Message;
|
||||
import io.github.ehlxr.did.client.Client;
|
||||
import io.github.ehlxr.did.client.ResponseFuture;
|
||||
import io.github.ehlxr.did.common.NettyUtil;
|
||||
import io.github.ehlxr.did.common.Try;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.channel.SimpleChannelInboundHandler;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -24,8 +24,8 @@
|
||||
|
||||
package io.github.ehlxr.did.server;
|
||||
|
||||
import io.github.ehlxr.did.generator.SnowFlake;
|
||||
import io.github.ehlxr.did.common.Try;
|
||||
import io.github.ehlxr.did.generator.SnowFlake;
|
||||
import io.netty.bootstrap.ServerBootstrap;
|
||||
import io.netty.channel.ChannelFuture;
|
||||
import io.netty.channel.ChannelOption;
|
||||
|
@ -24,9 +24,9 @@
|
||||
|
||||
package io.github.ehlxr.did.server.http;
|
||||
|
||||
import io.github.ehlxr.did.generator.SnowFlake;
|
||||
import io.github.ehlxr.did.common.Constants;
|
||||
import io.github.ehlxr.did.common.Try;
|
||||
import io.github.ehlxr.did.generator.SnowFlake;
|
||||
import io.github.ehlxr.did.server.BaseServer;
|
||||
import io.netty.channel.ChannelInitializer;
|
||||
import io.netty.channel.socket.SocketChannel;
|
||||
|
@ -25,10 +25,10 @@
|
||||
package io.github.ehlxr.did.server.http;
|
||||
|
||||
import io.github.ehlxr.did.SdkProto;
|
||||
import io.github.ehlxr.did.generator.SnowFlake;
|
||||
import io.github.ehlxr.did.common.Constants;
|
||||
import io.github.ehlxr.did.common.NettyUtil;
|
||||
import io.github.ehlxr.did.common.Result;
|
||||
import io.github.ehlxr.did.generator.SnowFlake;
|
||||
import io.netty.channel.Channel;
|
||||
import io.netty.channel.ChannelFutureListener;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
@ -24,11 +24,11 @@
|
||||
|
||||
package io.github.ehlxr.did.server.sdk;
|
||||
|
||||
import io.github.ehlxr.did.generator.SnowFlake;
|
||||
import io.github.ehlxr.did.adapter.MessageDecoder;
|
||||
import io.github.ehlxr.did.adapter.MessageEncoder;
|
||||
import io.github.ehlxr.did.common.Constants;
|
||||
import io.github.ehlxr.did.common.Try;
|
||||
import io.github.ehlxr.did.generator.SnowFlake;
|
||||
import io.github.ehlxr.did.server.BaseServer;
|
||||
import io.netty.channel.ChannelInitializer;
|
||||
import io.netty.channel.socket.SocketChannel;
|
||||
|
Loading…
Reference in New Issue
Block a user