All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.gateway.netbidib.NetBidibServerMessage Maven / Gradle / Ivy

There is a newer version: 2.0.25
Show newest version
package org.bidib.wizard.gateway.netbidib;

import java.util.function.Consumer;

import org.bidib.jbidibc.messages.HostAdapter;
import org.bidib.jbidibc.messages.message.BidibMessageInterface;
import org.bidib.jbidibc.messages.message.netbidib.NetBidibLinkData;
import org.bidib.jbidibc.netbidib.server.NetBidibServer;
import org.bidib.jbidibc.netbidib.server.NetBidibServerHandler;
import org.bidib.jbidibc.netbidib.server.RoleTypeEnum;

import io.netty.channel.group.ChannelGroup;

public abstract class NetBidibServerMessage extends NetBidibServer {

    public NetBidibServerMessage(String hostName, int portNumber, HostAdapter hostAdapter,
        String connectionName, NetBidibLinkData serverLinkData, RoleTypeEnum roleType,
        final NetBidibLinkData pairedPartner) {
        super(hostName, portNumber, hostAdapter, connectionName, serverLinkData, roleType, pairedPartner);
    }

    @Override
    protected NetBidibServerHandler createNetBidibServerHandler(
        ChannelGroup channelGroup, NetBidibLinkData serverLinkData, HostAdapter hostAdapter,
        String connectionName, Consumer> lazyInitializationCallback,
        final RoleTypeEnum roleType, final NetBidibLinkData pairedPartner) {

        // create the server handler
        NetBidibServerHandler serverHandler =
            new NetBidibServerHandlerMessage(channelGroup, hostAdapter, connectionName, serverLinkData,
                lazyInitializationCallback, roleType, pairedPartner);

        return serverHandler;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy