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

org.fz.nettyx.template.serial.jsc.SingleJscChannelTemplate Maven / Gradle / Ivy

There is a newer version: 2.3.22-RELEASE
Show newest version
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