Search in sources :

Example 1 with MessageQueue

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);
}
Also used : XdagHandlerFactoryImpl(io.xdag.net.handler.XdagHandlerFactoryImpl) MessageQueue(io.xdag.net.message.MessageQueue) XdagHandshakeHandler(io.xdag.net.handler.XdagHandshakeHandler) MessageCodes(io.xdag.net.handler.MessageCodes) XdagBlockHandler(io.xdag.net.handler.XdagBlockHandler)

Aggregations

MessageCodes (io.xdag.net.handler.MessageCodes)1 XdagBlockHandler (io.xdag.net.handler.XdagBlockHandler)1 XdagHandlerFactoryImpl (io.xdag.net.handler.XdagHandlerFactoryImpl)1 XdagHandshakeHandler (io.xdag.net.handler.XdagHandshakeHandler)1 MessageQueue (io.xdag.net.message.MessageQueue)1