org.bidib.wizard.gateway.netbidib.NetBidibServerMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-gateway Show documentation
Show all versions of bidibwizard-gateway Show documentation
jBiDiB BiDiB Wizard Gateway POM
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;
}
}