![JAR search and dependency download from the Maven repository](/logo.png)
org.fz.nettyx.template.serial.jsc.SingleJscChannelTemplate Maven / Gradle / Ivy
package org.fz.nettyx.template.serial.jsc;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.oio.OioEventLoopGroup;
import org.fz.nettyx.channel.SerialCommChannel;
import org.fz.nettyx.channel.jsc.JscChannel;
import org.fz.nettyx.channel.jsc.JscChannelConfig;
import org.fz.nettyx.template.AbstractSingleChannelTemplate;
/**
* template with single-jsc channel
* @author fengbinbin
* @version 1.0
* @since 2024/2/29 10:09
*/
@SuppressWarnings("deprecation")
public abstract class SingleJscChannelTemplate extends AbstractSingleChannelTemplate {
protected SingleJscChannelTemplate(String commAddress) {
super(new SerialCommChannel.SerialCommAddress(commAddress));
}
protected SingleJscChannelTemplate(SerialCommChannel.SerialCommAddress commAddress) {
super(commAddress);
}
@Override
protected EventLoopGroup newEventLoopGroup() {
return new OioEventLoopGroup();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy