use of io.xdag.net.message.MessageQueue in project xdagj by XDagger.
the class XdagChannel method init.
public void init(ChannelPipeline pipeline, Kernel kernel, boolean isServer, InetSocketAddress inetSocketAddress) {
this.kernel = kernel;
this.inetSocketAddress = inetSocketAddress;
this.handshakeHandler = new XdagHandshakeHandler(kernel, this);
handshakeHandler.setServer(isServer);
pipeline.addLast("handshakeHandler", handshakeHandler);
this.messageQueue = new MessageQueue(this);
this.messageCodec = new MessageCodes();
this.blockHandler = new XdagBlockHandler(this);
this.xdagHandlerFactory = new XdagHandlerFactoryImpl(kernel, this);
}
Aggregations